#1F2873#1F2873

#1F2873 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.128 H 271.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1F2873
RGBrgb(31, 40, 115)
HSLhsl(234, 58%, 29%)
HSVhsv(234, 73%, 45%)
CMYKcmyk(73%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.23, 23.61, -44.32)
CIE-LCHlch(20.23, 50.22, 298.05°)
OKLaboklab(32.17% 0.004 -0.1279)
OKLCHoklch(32.17% 0.128 271.8)
XYZxyz(4.4173, 3.0463, 16.5715)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2873 #736A1F
analogous
#1F5273 #1F2873 #401F73
triadic
#1F2873 #731F28 #28731F
tetradic
#1F2873 #731F52 #736A1F #1F7340
square
#1F2873 #731F52 #736A1F #1F7340
split-complementary
#1F2873 #73401F #52731F
monochromatic
#060818 #121743 #1F2873 #2C39A3 #4150CC

Accessibility & contrast

On white

13.05
#1F2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2873
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2873#FFFFFF#000000##FFFFFF
##1F28731.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2873;
/* rgb */ color: rgb(31, 40, 115);
/* oklch */ color: oklch(32.2% 0.128 271.8);
Tailwind
colors: {
  custom: {
    50: '#67629c',
    500: '#1f2873',
    950: '#000000',
  },
}
SCSS
$custom: #1f2873;
$custom-light: #67629c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2873",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 233.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.12799,
    "h": 271.8
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#1F2873
secondary
#A79D47
accent
#D047E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2873

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

Preview Lab → · Contrast checker → · Palette generator →

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