#1F217A#1F217A

#1F217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.146 H 273.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F217A
RGBrgb(31, 33, 122)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 75%, 48%)
CMYKcmyk(74.6%, 73%, 0%, 52.2%)
CIE-LABlab(19.16, 30.95, -50.56)
CIE-LCHlch(19.16, 59.28, 301.47°)
OKLaboklab(31.6% 0.0083 -0.1462)
OKLCHoklch(31.6% 0.146 273.2)
XYZxyz(4.6206, 2.7837, 18.7024)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F217A #7A781F
analogous
#1F4F7A #1F217A #4A1F7A
triadic
#1F217A #7A1F21 #217A1F
tetradic
#1F217A #7A1F4F #7A781F #1F7A4A
square
#1F217A #7A1F4F #7A781F #1F7A4A
split-complementary
#1F217A #7A4A1F #4F7A1F
monochromatic
#060718 #131449 #1F217A #2B2EAB #4447CF

Accessibility & contrast

On white

13.49
#1F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F217A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F217A#FFFFFF#000000##FFFFFF
##1F217A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f217a;
/* rgb */ color: rgb(31, 33, 122);
/* oklch */ color: oklch(31.6% 0.146 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#1f217a',
    950: '#000000',
  },
}
SCSS
$custom: #1f217a;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f217a",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 238.681,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.316,
    "c": 0.14645,
    "h": 273.2
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#1F217A
secondary
#ADAB47
accent
#DF45E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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