#1F2D89#1F2D89

#1F2D89 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.153 H 269.7°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#1F2D89
RGBrgb(31, 45, 137)
HSLhsl(232, 63%, 33%)
HSVhsv(232, 77%, 54%)
CMYKcmyk(77.4%, 67.2%, 0%, 46.3%)
CIE-LABlab(23.58, 28.66, -52.75)
CIE-LCHlch(23.58, 60.03, 298.51°)
OKLaboklab(35.27% -0.0008 -0.1526)
OKLCHoklch(35.27% 0.153 269.7)
XYZxyz(6.0173, 3.9736, 24.1119)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D89 #897B1F
analogous
#1F6289 #1F2D89 #461F89
triadic
#1F2D89 #891F2D #2D891F
tetradic
#1F2D89 #891F62 #897B1F #1F8946
square
#1F2D89 #891F62 #897B1F #1F8946
split-complementary
#1F2D89 #89461F #62891F
monochromatic
#080C25 #141D57 #1F2D89 #2A3DBB #4C5ED6

Accessibility & contrast

On white

11.70
#1F2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D89
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D89#FFFFFF#000000##FFFFFF
##1F2D891.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2d89;
/* rgb */ color: rgb(31, 45, 137);
/* oklch */ color: oklch(35.3% 0.153 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d66ac',
    500: '#1f2d89',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d89;
$custom-light: #6d66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d89",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 232.075,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.15259,
    "h": 269.7
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#1F2D89
secondary
#B9AB4B
accent
#D042E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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