#1F1DB1#1F1DB1

#1F1DB1 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.4% C 0.218 H 269.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#1F1DB1
RGBrgb(31, 29, 177)
HSLhsl(241, 72%, 40%)
HSVhsv(241, 84%, 69%)
CMYKcmyk(82.5%, 83.6%, 0%, 30.6%)
CIE-LABlab(24.78, 51.61, -75.23)
CIE-LCHlch(24.78, 91.23, 304.45°)
OKLaboklab(37.41% -0.0012 -0.2178)
OKLCHoklch(37.41% 0.218 269.7)
XYZxyz(8.9376, 4.3433, 41.9537)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1DB1 #AFB11D
analogous
#1D65B1 #1F1DB1 #691DB1
triadic
#1F1DB1 #B11F1D #1DB11F
tetradic
#1F1DB1 #B11D65 #AFB11D #1DB169
square
#1F1DB1 #B11D65 #AFB11D #1DB169
split-complementary
#1F1DB1 #B1691D #65B11D
monochromatic
#0D0C48 #16147C #1F1DB1 #312EDD #6563E5

Accessibility & contrast

On white

11.24
#1F1DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F1DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1DB1
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1DB1#FFFFFF#000000##FFFFFF
##1F1DB11.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B5
Deuteranopia (green-blind)
#0033AF
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f1db1;
/* rgb */ color: rgb(31, 29, 177);
/* oklch */ color: oklch(37.4% 0.218 269.7);
Tailwind
colors: {
  custom: {
    50: '#795eca',
    500: '#1f1db1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1db1;
$custom-light: #795eca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1db1",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 240.811,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37413,
    "c": 0.21778,
    "h": 269.7
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#1F1DB1
secondary
#C9CA60
accent
#EF39EC
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F1DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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