#1F2888#1F2888

#1F2888 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.157 H 270.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2888
RGBrgb(31, 40, 136)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 77%, 53%)
CMYKcmyk(77.2%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.25, 31.59, -54.32)
CIE-LCHlch(22.25, 62.83, 300.18°)
OKLaboklab(34.27% 0.0023 -0.1572)
OKLCHoklch(34.27% 0.157 270.8)
XYZxyz(5.7663, 3.5858, 23.6760)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2888 #887F1F
analogous
#1F5C88 #1F2888 #4A1F88
triadic
#1F2888 #881F28 #28881F
tetradic
#1F2888 #881F5C #887F1F #1F884A
square
#1F2888 #881F5C #887F1F #1F884A
split-complementary
#1F2888 #884A1F #5C881F
monochromatic
#080B24 #141956 #1F2888 #2A37BA #4B57D6

Accessibility & contrast

On white

12.23
#1F2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2888
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2888#FFFFFF#000000##FFFFFF
##1F28881.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2888;
/* rgb */ color: rgb(31, 40, 136);
/* oklch */ color: oklch(34.3% 0.157 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d62ac',
    500: '#1f2888',
    950: '#000000',
  },
}
SCSS
$custom: #1f2888;
$custom-light: #6d62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2888",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 234.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34267,
    "c": 0.1572,
    "h": 270.8
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#1F2888
secondary
#B9AF4A
accent
#D842E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2888

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

Preview Lab → · Contrast checker → · Palette generator →

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