#1F2A8B#1F2A8B

#1F2A8B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.159 H 270.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#1F2A8B
RGBrgb(31, 42, 139)
HSLhsl(234, 64%, 33%)
HSVhsv(234, 78%, 55%)
CMYKcmyk(77.7%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.04, 31.40, -54.90)
CIE-LCHlch(23.04, 63.24, 299.77°)
OKLaboklab(34.93% 0.0008 -0.1589)
OKLCHoklch(34.93% 0.159 270.3)
XYZxyz(6.0516, 3.8107, 24.8377)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A8B #8B801F
analogous
#1F608B #1F2A8B #4A1F8B
triadic
#1F2A8B #8B1F2A #2A8B1F
tetradic
#1F2A8B #8B1F60 #8B801F #1F8B4A
square
#1F2A8B #8B1F60 #8B801F #1F8B4A
split-complementary
#1F2A8B #8B4A1F #608B1F
monochromatic
#090C27 #141B59 #1F2A8B #2A39BD #4D5BD7

Accessibility & contrast

On white

11.92
#1F2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A8B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A8B#FFFFFF#000000##FFFFFF
##1F2A8B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2a8b;
/* rgb */ color: rgb(31, 42, 139);
/* oklch */ color: oklch(34.9% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d64ae',
    500: '#1f2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a8b;
$custom-light: #6d64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a8b",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 233.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.15888,
    "h": 270.3
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#1F2A8B
secondary
#BAAF4C
accent
#D641E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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