#1F216A#1F216A

#1F216A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.124 H 274.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#1F216A
RGBrgb(31, 33, 106)
HSLhsl(238, 55%, 27%)
HSVhsv(238, 71%, 42%)
CMYKcmyk(70.8%, 68.9%, 0%, 58.4%)
CIE-LABlab(17.55, 24.99, -42.87)
CIE-LCHlch(17.55, 49.62, 300.24°)
OKLaboklab(29.95% 0.0103 -0.1237)
OKLCHoklch(29.95% 0.124 274.7)
XYZxyz(3.7096, 2.4193, 13.9044)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216A #6A681F
analogous
#1F476A #1F216A #431F6A
triadic
#1F216A #6A1F21 #216A1F
tetradic
#1F216A #6A1F47 #6A681F #1F6A43
square
#1F216A #6A1F47 #6A681F #1F6A43
split-complementary
#1F216A #6A431F #476A1F
monochromatic
#070718 #11123B #1F216A #2D3099 #3D41C6

Accessibility & contrast

On white

14.15
#1F216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F216A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216A#FFFFFF#000000##FFFFFF
##1F216A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f216a;
/* rgb */ color: rgb(31, 33, 106);
/* oklch */ color: oklch(29.9% 0.124 274.7);
Tailwind
colors: {
  custom: {
    50: '#665c95',
    500: '#1f216a',
    950: '#000000',
  },
}
SCSS
$custom: #1f216a;
$custom-light: #665c95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216a",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 238.4,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29948,
    "c": 0.12416,
    "h": 274.7
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#1F216A
secondary
#9E9C47
accent
#DA4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F216A

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

Preview Lab → · Contrast checker → · Palette generator →

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