#1F2489#1F2489

#1F2489 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.163 H 271.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2489
RGBrgb(31, 36, 137)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 77%, 54%)
CMYKcmyk(77.4%, 73.7%, 0%, 46.3%)
CIE-LABlab(21.43, 34.50, -56.30)
CIE-LCHlch(21.43, 66.03, 301.50°)
OKLaboklab(33.7% 0.0043 -0.163)
OKLCHoklch(33.7% 0.163 271.5)
XYZxyz(5.7098, 3.3586, 24.0094)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2489 #89841F
analogous
#1F5989 #1F2489 #4F1F89
triadic
#1F2489 #891F24 #24891F
tetradic
#1F2489 #891F59 #89841F #1F894F
square
#1F2489 #891F59 #89841F #1F894F
split-complementary
#1F2489 #894F1F #59891F
monochromatic
#080A25 #141757 #1F2489 #2A31BB #4C52D6

Accessibility & contrast

On white

12.56
#1F2489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2489
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2489#FFFFFF#000000##FFFFFF
##1F24891.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2489;
/* rgb */ color: rgb(31, 36, 137);
/* oklch */ color: oklch(33.7% 0.163 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d5fad',
    500: '#1f2489',
    950: '#000000',
  },
}
SCSS
$custom: #1f2489;
$custom-light: #6d5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2489",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 237.17,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33704,
    "c": 0.16302,
    "h": 271.5
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#1F2489
secondary
#B9B44B
accent
#DE42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2489

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

Preview Lab → · Contrast checker → · Palette generator →

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