#1F2972#1F2972

#1F2972 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.125 H 271.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1F2972
RGBrgb(31, 41, 114)
HSLhsl(233, 57%, 28%)
HSVhsv(233, 73%, 45%)
CMYKcmyk(72.8%, 64%, 0%, 55.3%)
CIE-LABlab(20.41, 22.52, -43.38)
CIE-LCHlch(20.41, 48.88, 297.44°)
OKLaboklab(32.28% 0.0032 -0.1252)
OKLCHoklch(32.28% 0.125 271.5)
XYZxyz(4.3942, 3.0917, 16.2815)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2972 #72681F
analogous
#1F5272 #1F2972 #3E1F72
triadic
#1F2972 #721F29 #29721F
tetradic
#1F2972 #721F52 #72681F #1F723E
square
#1F2972 #721F52 #72681F #1F723E
split-complementary
#1F2972 #723E1F #52721F
monochromatic
#070918 #121842 #1F2972 #2C3AA2 #4051CB

Accessibility & contrast

On white

12.98
#1F2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2972
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2972#FFFFFF#000000##FFFFFF
##1F29721.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2972;
/* rgb */ color: rgb(31, 41, 114);
/* oklch */ color: oklch(32.3% 0.125 271.5);
Tailwind
colors: {
  custom: {
    50: '#67629b',
    500: '#1f2972',
    950: '#000000',
  },
}
SCSS
$custom: #1f2972;
$custom-light: #67629b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2972",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 232.771,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32275,
    "c": 0.12521,
    "h": 271.5
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#1F2972
secondary
#A69A47
accent
#CE47E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2972

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

Preview Lab → · Contrast checker → · Palette generator →

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