#1F2971#1F2971

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

Color values

HEX#1F2971
RGBrgb(31, 41, 113)
HSLhsl(233, 57%, 28%)
HSVhsv(233, 73%, 44%)
CMYKcmyk(72.6%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.32, 22.14, -42.89)
CIE-LCHlch(20.32, 48.26, 297.30°)
OKLaboklab(32.18% 0.0032 -0.1237)
OKLCHoklch(32.18% 0.124 271.5)
XYZxyz(4.3376, 3.0690, 15.9834)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2971 #71671F
analogous
#1F5271 #1F2971 #3E1F71
triadic
#1F2971 #711F29 #29711F
tetradic
#1F2971 #711F52 #71671F #1F713E
square
#1F2971 #711F52 #71671F #1F713E
split-complementary
#1F2971 #713E1F #52711F
monochromatic
#070918 #121841 #1F2971 #2C3AA1 #4051CB

Accessibility & contrast

On white

13.01
#1F2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2971
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2971#FFFFFF#000000##FFFFFF
##1F29711.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2971;
/* rgb */ color: rgb(31, 41, 113);
/* oklch */ color: oklch(32.2% 0.124 271.5);
Tailwind
colors: {
  custom: {
    50: '#67629a',
    500: '#1f2971',
    950: '#000000',
  },
}
SCSS
$custom: #1f2971;
$custom-light: #67629a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2971",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 232.683,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32181,
    "c": 0.12375,
    "h": 271.5
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#1F2971
secondary
#A59947
accent
#CE48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2971

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

Preview Lab → · Contrast checker → · Palette generator →

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