#1F2F9D#1F2F9D

#1F2F9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.177 H 268.9°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#1F2F9D
RGBrgb(31, 47, 157)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 80%, 62%)
CMYKcmyk(80.3%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.03, 34.85, -61.06)
CIE-LCHlch(26.03, 70.30, 299.71°)
OKLaboklab(37.65% -0.0035 -0.1768)
OKLCHoklch(37.65% 0.177 268.9)
XYZxyz(7.6653, 4.7578, 32.4061)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F9D #9D8D1F
analogous
#1F6E9D #1F2F9D #4E1F9D
triadic
#1F2F9D #9D1F2F #2F9D1F
tetradic
#1F2F9D #9D1F6E #9D8D1F #1F9D4E
square
#1F2F9D #9D1F6E #9D8D1F #1F9D4E
split-complementary
#1F2F9D #9D4E1F #6E9D1F
monochromatic
#0B1037 #15206A #1F2F9D #293ED0 #5869DE

Accessibility & contrast

On white

10.76
#1F2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F9D
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F9D#FFFFFF#000000##FFFFFF
##1F2F9D1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2f9d;
/* rgb */ color: rgb(31, 47, 157);
/* oklch */ color: oklch(37.6% 0.177 268.9);
Tailwind
colors: {
  custom: {
    50: '#7268bb',
    500: '#1f2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f9d;
$custom-light: #7268bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f9d",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 232.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37645,
    "c": 0.17688,
    "h": 268.9
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#1F2F9D
secondary
#C2B456
accent
#D43EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2F9D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F2F9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva