#1F2788#1F2788

#1F2788 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.158 H 271.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2788
RGBrgb(31, 39, 136)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 77%, 53%)
CMYKcmyk(77.2%, 71.3%, 0%, 46.7%)
CIE-LABlab(22.01, 32.23, -54.71)
CIE-LCHlch(22.01, 63.50, 300.51°)
OKLaboklab(34.1% 0.0029 -0.1583)
OKLCHoklch(34.1% 0.158 271)
XYZxyz(5.7330, 3.5193, 23.6649)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2788 #88801F
analogous
#1F5B88 #1F2788 #4C1F88
triadic
#1F2788 #881F27 #27881F
tetradic
#1F2788 #881F5B #88801F #1F884C
square
#1F2788 #881F5B #88801F #1F884C
split-complementary
#1F2788 #884C1F #5B881F
monochromatic
#080A24 #141956 #1F2788 #2A35BA #4B56D6

Accessibility & contrast

On white

12.32
#1F2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2788
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2788#FFFFFF#000000##FFFFFF
##1F27881.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.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: #1f2788;
/* rgb */ color: rgb(31, 39, 136);
/* oklch */ color: oklch(34.1% 0.158 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#1f2788',
    950: '#000000',
  },
}
SCSS
$custom: #1f2788;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2788",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 235.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34095,
    "c": 0.15835,
    "h": 271
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#1F2788
secondary
#B9B04A
accent
#D942E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2788

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

Preview Lab → · Contrast checker → · Palette generator →

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