#1F2A89#1F2A89

#1F2A89 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.156 H 270.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#1F2A89
RGBrgb(31, 42, 137)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 54%)
CMYKcmyk(77.4%, 69.3%, 0%, 46.3%)
CIE-LABlab(22.84, 30.65, -53.98)
CIE-LCHlch(22.84, 62.08, 299.59°)
OKLaboklab(34.72% 0.001 -0.1562)
OKLCHoklch(34.72% 0.156 270.4)
XYZxyz(5.9069, 3.7527, 24.0751)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A89 #897E1F
analogous
#1F5F89 #1F2A89 #491F89
triadic
#1F2A89 #891F2A #2A891F
tetradic
#1F2A89 #891F5F #897E1F #1F8949
square
#1F2A89 #891F5F #897E1F #1F8949
split-complementary
#1F2A89 #89491F #5F891F
monochromatic
#080B25 #141B57 #1F2A89 #2A39BB #4C5AD6

Accessibility & contrast

On white

12.00
#1F2A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A89
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A89#FFFFFF#000000##FFFFFF
##1F2A891.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2a89;
/* rgb */ color: rgb(31, 42, 137);
/* oklch */ color: oklch(34.7% 0.156 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d64ac',
    500: '#1f2a89',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a89;
$custom-light: #6d64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a89",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 233.774,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.15619,
    "h": 270.4
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#1F2A89
secondary
#B9AE4B
accent
#D542E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A89

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

Preview Lab → · Contrast checker → · Palette generator →

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