#1F2989#1F2989

#1F2989 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.157 H 270.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#1F2989
RGBrgb(31, 41, 137)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 54%)
CMYKcmyk(77.4%, 70.1%, 0%, 46.3%)
CIE-LABlab(22.59, 31.31, -54.38)
CIE-LCHlch(22.59, 62.75, 299.93°)
OKLaboklab(34.54% 0.0016 -0.1574)
OKLCHoklch(34.54% 0.157 270.6)
XYZxyz(5.8718, 3.6827, 24.0634)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2989 #897F1F
analogous
#1F5E89 #1F2989 #4A1F89
triadic
#1F2989 #891F29 #29891F
tetradic
#1F2989 #891F5E #897F1F #1F894A
square
#1F2989 #891F5E #897F1F #1F894A
split-complementary
#1F2989 #894A1F #5E891F
monochromatic
#080B25 #141A57 #1F2989 #2A38BB #4C59D6

Accessibility & contrast

On white

12.09
#1F2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2989
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2989#FFFFFF#000000##FFFFFF
##1F29891.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2989;
/* rgb */ color: rgb(31, 41, 137);
/* oklch */ color: oklch(34.5% 0.157 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d63ac',
    500: '#1f2989',
    950: '#000000',
  },
}
SCSS
$custom: #1f2989;
$custom-light: #6d63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2989",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 234.34,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34545,
    "c": 0.15737,
    "h": 270.6
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#1F2989
secondary
#B9AF4B
accent
#D742E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2989

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

Preview Lab → · Contrast checker → · Palette generator →

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