#1F1DB3#1F1DB3

#1F1DB3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.220 H 269.6°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#1F1DB3
RGBrgb(31, 29, 179)
HSLhsl(241, 72%, 41%)
HSVhsv(241, 84%, 70%)
CMYKcmyk(82.7%, 83.8%, 0%, 29.8%)
CIE-LABlab(25.03, 52.23, -76.01)
CIE-LCHlch(25.03, 92.23, 304.49°)
OKLaboklab(37.66% -0.0016 -0.22)
OKLCHoklch(37.66% 0.22 269.6)
XYZxyz(9.1384, 4.4236, 43.0113)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1DB3 #B1B31D
analogous
#1D66B3 #1F1DB3 #6A1DB3
triadic
#1F1DB3 #B31F1D #1DB31F
tetradic
#1F1DB3 #B31D66 #B1B31D #1DB36A
square
#1F1DB3 #B31D66 #B1B31D #1DB36A
split-complementary
#1F1DB3 #B36A1D #66B31D
monochromatic
#0D0C4A #16147E #1F1DB3 #3230DD #6664E6

Accessibility & contrast

On white

11.14
#1F1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1DB3
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1DB3#FFFFFF#000000##FFFFFF
##1F1DB31.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f1db3;
/* rgb */ color: rgb(31, 29, 179);
/* oklch */ color: oklch(37.7% 0.220 269.6);
Tailwind
colors: {
  custom: {
    50: '#795ecb',
    500: '#1f1db3',
    950: '#000000',
  },
}
SCSS
$custom: #1f1db3;
$custom-light: #795ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1db3",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 240.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.37657,
    "c": 0.22005,
    "h": 269.6
  },
  "luminance": 0.04425
}

Semantic roles & 50–950 ramp

primary
#1F1DB3
secondary
#CACB61
accent
#EF39EC
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1F1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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