#1F2D8B#1F2D8B

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

Color values

HEX#1F2D8B
RGBrgb(31, 45, 139)
HSLhsl(232, 64%, 33%)
HSVhsv(232, 78%, 55%)
CMYKcmyk(77.7%, 67.6%, 0%, 45.5%)
CIE-LABlab(23.78, 29.42, -53.68)
CIE-LCHlch(23.78, 61.22, 298.72°)
OKLaboklab(35.47% -0.0009 -0.1553)
OKLCHoklch(35.47% 0.155 269.7)
XYZxyz(6.1621, 4.0315, 24.8745)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D8B #8B7D1F
analogous
#1F638B #1F2D8B #471F8B
triadic
#1F2D8B #8B1F2D #2D8B1F
tetradic
#1F2D8B #8B1F63 #8B7D1F #1F8B47
square
#1F2D8B #8B1F63 #8B7D1F #1F8B47
split-complementary
#1F2D8B #8B471F #638B1F
monochromatic
#090D27 #141D59 #1F2D8B #2A3DBD #4D5FD7

Accessibility & contrast

On white

11.63
#1F2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D8B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D8B#FFFFFF#000000##FFFFFF
##1F2D8B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2d8b;
/* rgb */ color: rgb(31, 45, 139);
/* oklch */ color: oklch(35.5% 0.155 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d66ae',
    500: '#1f2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d8b;
$custom-light: #6d66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d8b",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 232.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.15532,
    "h": 269.7
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#1F2D8B
secondary
#BAAC4C
accent
#D141E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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