#1F2973#1F2973

#1F2973 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.127 H 271.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1F2973
RGBrgb(31, 41, 115)
HSLhsl(233, 58%, 29%)
HSVhsv(233, 73%, 45%)
CMYKcmyk(73%, 64.3%, 0%, 54.9%)
CIE-LABlab(20.50, 22.91, -43.88)
CIE-LCHlch(20.50, 49.50, 297.57°)
OKLaboklab(32.37% 0.0032 -0.1266)
OKLCHoklch(32.37% 0.127 271.4)
XYZxyz(4.4515, 3.1146, 16.5829)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2973 #73691F
analogous
#1F5373 #1F2973 #3F1F73
triadic
#1F2973 #731F29 #29731F
tetradic
#1F2973 #731F53 #73691F #1F733F
square
#1F2973 #731F53 #73691F #1F733F
split-complementary
#1F2973 #733F1F #53731F
monochromatic
#060918 #121843 #1F2973 #2C3AA3 #4151CC

Accessibility & contrast

On white

12.94
#1F2973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2973
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2973#FFFFFF#000000##FFFFFF
##1F29731.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2973;
/* rgb */ color: rgb(31, 41, 115);
/* oklch */ color: oklch(32.4% 0.127 271.4);
Tailwind
colors: {
  custom: {
    50: '#67629c',
    500: '#1f2973',
    950: '#000000',
  },
}
SCSS
$custom: #1f2973;
$custom-light: #67629c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2973",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 232.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.12667,
    "h": 271.4
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#1F2973
secondary
#A79B47
accent
#CE47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2973

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

Preview Lab → · Contrast checker → · Palette generator →

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