#1F2689#1F2689

#1F2689 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.161 H 271.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1F2689
RGBrgb(31, 38, 137)
HSLhsl(236, 63%, 33%)
HSVhsv(236, 77%, 54%)
CMYKcmyk(77.4%, 72.3%, 0%, 46.3%)
CIE-LABlab(21.88, 33.24, -55.55)
CIE-LCHlch(21.88, 64.73, 300.90°)
OKLaboklab(34.03% 0.0033 -0.1608)
OKLCHoklch(34.03% 0.161 271.2)
XYZxyz(5.7720, 3.4831, 24.0302)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2689 #89821F
analogous
#1F5B89 #1F2689 #4D1F89
triadic
#1F2689 #891F26 #26891F
tetradic
#1F2689 #891F5B #89821F #1F894D
square
#1F2689 #891F5B #89821F #1F894D
split-complementary
#1F2689 #894D1F #5B891F
monochromatic
#080A25 #141857 #1F2689 #2A34BB #4C55D6

Accessibility & contrast

On white

12.38
#1F2689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2689
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2689#FFFFFF#000000##FFFFFF
##1F26891.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2689;
/* rgb */ color: rgb(31, 38, 137);
/* oklch */ color: oklch(34.0% 0.161 271.2);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#1f2689',
    950: '#000000',
  },
}
SCSS
$custom: #1f2689;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2689",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 236.038,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34032,
    "c": 0.1608,
    "h": 271.2
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#1F2689
secondary
#B9B24B
accent
#DB42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2689

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

Preview Lab → · Contrast checker → · Palette generator →

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