#1F2F89#1F2F89

#1F2F89 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.150 H 269.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#1F2F89
RGBrgb(31, 47, 137)
HSLhsl(231, 63%, 33%)
HSVhsv(231, 77%, 54%)
CMYKcmyk(77.4%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.10, 27.31, -51.91)
CIE-LCHlch(24.10, 58.66, 297.75°)
OKLaboklab(35.64% -0.0021 -0.1501)
OKLCHoklch(35.64% 0.15 269.2)
XYZxyz(6.0954, 4.1298, 24.1380)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F89 #89791F
analogous
#1F6489 #1F2F89 #441F89
triadic
#1F2F89 #891F2F #2F891F
tetradic
#1F2F89 #891F64 #89791F #1F8944
square
#1F2F89 #891F64 #89791F #1F8944
split-complementary
#1F2F89 #89441F #64891F
monochromatic
#080D25 #141E57 #1F2F89 #2A40BB #4C61D6

Accessibility & contrast

On white

11.50
#1F2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F89
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F89#FFFFFF#000000##FFFFFF
##1F2F891.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2f89;
/* rgb */ color: rgb(31, 47, 137);
/* oklch */ color: oklch(35.6% 0.150 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c67ac',
    500: '#1f2f89',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f89;
$custom-light: #6c67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f89",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 230.943,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35642,
    "c": 0.15013,
    "h": 269.2
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#1F2F89
secondary
#B9A84B
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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