#1F2372#1F2372

#1F2372 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.133 H 273.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F2372
RGBrgb(31, 35, 114)
HSLhsl(237, 57%, 28%)
HSVhsv(237, 73%, 45%)
CMYKcmyk(72.8%, 69.3%, 0%, 55.3%)
CIE-LABlab(18.83, 26.66, -45.96)
CIE-LCHlch(18.83, 53.13, 300.12°)
OKLaboklab(31.12% 0.0079 -0.1328)
OKLCHoklch(31.12% 0.133 273.4)
XYZxyz(4.2024, 2.7079, 16.2175)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2372 #726E1F
analogous
#1F4C72 #1F2372 #441F72
triadic
#1F2372 #721F23 #23721F
tetradic
#1F2372 #721F4C #726E1F #1F7244
square
#1F2372 #721F4C #726E1F #1F7244
split-complementary
#1F2372 #72441F #4C721F
monochromatic
#070718 #121442 #1F2372 #2C32A2 #4047CB

Accessibility & contrast

On white

13.62
#1F2372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2372
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2372#FFFFFF#000000##FFFFFF
##1F23721.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2372;
/* rgb */ color: rgb(31, 35, 114);
/* oklch */ color: oklch(31.1% 0.133 273.4);
Tailwind
colors: {
  custom: {
    50: '#685e9b',
    500: '#1f2372',
    950: '#000000',
  },
}
SCSS
$custom: #1f2372;
$custom-light: #685e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2372",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 237.108,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31121,
    "c": 0.133,
    "h": 273.4
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#1F2372
secondary
#A6A147
accent
#D947E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2372

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

Preview Lab → · Contrast checker → · Palette generator →

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