#1F1D8B#1F1D8B

#1F1D8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.173 H 272.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#1F1D8B
RGBrgb(31, 29, 139)
HSLhsl(241, 65%, 33%)
HSVhsv(241, 79%, 55%)
CMYKcmyk(77.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.18, 39.35, -59.61)
CIE-LCHlch(20.18, 71.43, 303.43°)
OKLaboklab(32.88% 0.0071 -0.1725)
OKLCHoklch(32.88% 0.173 272.4)
XYZxyz(5.6631, 3.0335, 24.7082)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D8B #898B1D
analogous
#1D528B #1F1D8B #561D8B
triadic
#1F1D8B #8B1F1D #1D8B1F
tetradic
#1F1D8B #8B1D52 #898B1D #1D8B56
square
#1F1D8B #8B1D52 #898B1D #1D8B56
split-complementary
#1F1D8B #8B561D #528B1D
monochromatic
#080826 #141258 #1F1D8B #2A28BE #4C49D9

Accessibility & contrast

On white

13.07
#1F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D8B
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D8B#FFFFFF#000000##FFFFFF
##1F1D8B1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1d8b;
/* rgb */ color: rgb(31, 29, 139);
/* oklch */ color: oklch(32.9% 0.173 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f5bae',
    500: '#1f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d8b;
$custom-light: #6f5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d8b",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 241.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32884,
    "c": 0.17269,
    "h": 272.4
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#1F1D8B
secondary
#B9BB49
accent
#E83FE5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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