#1F2992#1F2992

#1F2992 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.169 H 270.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#1F2992
RGBrgb(31, 41, 146)
HSLhsl(235, 65%, 35%)
HSVhsv(235, 79%, 57%)
CMYKcmyk(78.8%, 71.9%, 0%, 42.7%)
CIE-LABlab(23.51, 34.63, -58.46)
CIE-LCHlch(23.51, 67.95, 300.64°)
OKLaboklab(35.49% 0.0006 -0.1693)
OKLCHoklch(35.49% 0.169 270.2)
XYZxyz(6.5445, 3.9518, 27.6064)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2992 #92881F
analogous
#1F6292 #1F2992 #4F1F92
triadic
#1F2992 #921F29 #29921F
tetradic
#1F2992 #921F62 #92881F #1F924F
square
#1F2992 #921F62 #92881F #1F924F
split-complementary
#1F2992 #924F1F #62921F
monochromatic
#0A0D2D #141B60 #1F2992 #2A37C4 #515DDA

Accessibility & contrast

On white

11.73
#1F2992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2992
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2992#FFFFFF#000000##FFFFFF
##1F29921.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2992;
/* rgb */ color: rgb(31, 41, 146);
/* oklch */ color: oklch(35.5% 0.169 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f63b3',
    500: '#1f2992',
    950: '#000000',
  },
}
SCSS
$custom: #1f2992;
$custom-light: #6f63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2992",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 146
  },
  "hsl": {
    "h": 234.783,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.16927,
    "h": 270.2
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#1F2992
secondary
#BDB450
accent
#D940E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2992

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

Preview Lab → · Contrast checker → · Palette generator →

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