#1F2F96#1F2F96

#1F2F96 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.168 H 269.0°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1F2F96
RGBrgb(31, 47, 150)
HSLhsl(232, 66%, 35%)
HSVhsv(232, 79%, 59%)
CMYKcmyk(79.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(25.34, 32.25, -57.92)
CIE-LCHlch(25.34, 66.29, 299.11°)
OKLaboklab(36.93% -0.0029 -0.1677)
OKLCHoklch(36.93% 0.168 269)
XYZxyz(7.0847, 4.5255, 29.3484)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F96 #96861F
analogous
#1F6A96 #1F2F96 #4B1F96
triadic
#1F2F96 #961F2F #2F961F
tetradic
#1F2F96 #961F6A #96861F #1F964B
square
#1F2F96 #961F6A #96861F #1F964B
split-complementary
#1F2F96 #964B1F #6A961F
monochromatic
#0A0F31 #151F63 #1F2F96 #293FC9 #5466DC

Accessibility & contrast

On white

11.02
#1F2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F96
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F96#FFFFFF#000000##FFFFFF
##1F2F961.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2f96;
/* rgb */ color: rgb(31, 47, 150);
/* oklch */ color: oklch(36.9% 0.168 269.0);
Tailwind
colors: {
  custom: {
    50: '#7067b6',
    500: '#1f2f96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f96;
$custom-light: #7067b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f96",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 231.933,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3693,
    "c": 0.1677,
    "h": 269
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#1F2F96
secondary
#BFB052
accent
#D23FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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