#1F2A71#1F2A71

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

Color values

HEX#1F2A71
RGBrgb(31, 42, 113)
HSLhsl(232, 57%, 28%)
HSVhsv(232, 73%, 44%)
CMYKcmyk(72.6%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.59, 21.43, -42.44)
CIE-LCHlch(20.59, 47.54, 296.80°)
OKLaboklab(32.38% 0.0024 -0.1224)
OKLCHoklch(32.38% 0.122 271.1)
XYZxyz(4.3727, 3.1391, 15.9950)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A71 #71661F
analogous
#1F5371 #1F2A71 #3D1F71
triadic
#1F2A71 #711F2A #2A711F
tetradic
#1F2A71 #711F53 #71661F #1F713D
square
#1F2A71 #711F53 #71661F #1F713D
split-complementary
#1F2A71 #713D1F #53711F
monochromatic
#070918 #121841 #1F2A71 #2C3CA1 #4052CB

Accessibility & contrast

On white

12.90
#1F2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A71
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A71#FFFFFF#000000##FFFFFF
##1F2A711.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2a71;
/* rgb */ color: rgb(31, 42, 113);
/* oklch */ color: oklch(32.4% 0.122 271.1);
Tailwind
colors: {
  custom: {
    50: '#67639a',
    500: '#1f2a71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a71;
$custom-light: #67639a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a71",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 231.951,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.1224,
    "h": 271.1
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#1F2A71
secondary
#A59847
accent
#CC48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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