#1F2872#1F2872

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

Color values

HEX#1F2872
RGBrgb(31, 40, 114)
HSLhsl(233, 57%, 28%)
HSVhsv(233, 73%, 45%)
CMYKcmyk(72.8%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.14, 23.22, -43.82)
CIE-LCHlch(20.14, 49.60, 297.92°)
OKLaboklab(32.07% 0.004 -0.1265)
OKLCHoklch(32.07% 0.127 271.8)
XYZxyz(4.3601, 3.0234, 16.2701)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2872 #72691F
analogous
#1F5172 #1F2872 #3F1F72
triadic
#1F2872 #721F28 #28721F
tetradic
#1F2872 #721F51 #72691F #1F723F
square
#1F2872 #721F51 #72691F #1F723F
split-complementary
#1F2872 #723F1F #51721F
monochromatic
#070818 #121742 #1F2872 #2C39A2 #404FCB

Accessibility & contrast

On white

13.09
#1F2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2872
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2872#FFFFFF#000000##FFFFFF
##1F28721.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2872;
/* rgb */ color: rgb(31, 40, 114);
/* oklch */ color: oklch(32.1% 0.127 271.8);
Tailwind
colors: {
  custom: {
    50: '#67619b',
    500: '#1f2872',
    950: '#000000',
  },
}
SCSS
$custom: #1f2872;
$custom-light: #67619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2872",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 233.494,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.12653,
    "h": 271.8
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#1F2872
secondary
#A69C47
accent
#D047E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2872

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

Preview Lab → · Contrast checker → · Palette generator →

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