#1F217B#1F217B

#1F217B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.148 H 273.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#1F217B
RGBrgb(31, 33, 123)
HSLhsl(239, 60%, 30%)
HSVhsv(239, 75%, 48%)
CMYKcmyk(74.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.26, 31.32, -51.03)
CIE-LCHlch(19.26, 59.87, 301.54°)
OKLaboklab(31.71% 0.0081 -0.1476)
OKLCHoklch(31.71% 0.148 273.1)
XYZxyz(4.6829, 2.8086, 19.0304)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F217B #7B791F
analogous
#1F4F7B #1F217B #4B1F7B
triadic
#1F217B #7B1F21 #217B1F
tetradic
#1F217B #7B1F4F #7B791F #1F7B4B
square
#1F217B #7B1F4F #7B791F #1F7B4B
split-complementary
#1F217B #7B4B1F #4F7B1F
monochromatic
#060719 #13144A #1F217B #2B2EAC #4447D0

Accessibility & contrast

On white

13.45
#1F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F217B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F217B#FFFFFF#000000##FFFFFF
##1F217B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f217b;
/* rgb */ color: rgb(31, 33, 123);
/* oklch */ color: oklch(31.7% 0.148 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a5da2',
    500: '#1f217b',
    950: '#000000',
  },
}
SCSS
$custom: #1f217b;
$custom-light: #6a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f217b",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 238.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31706,
    "c": 0.1478,
    "h": 273.1
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#1F217B
secondary
#AEAC48
accent
#DF45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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