#1F216B#1F216B

#1F216B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.126 H 274.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#1F216B
RGBrgb(31, 33, 107)
HSLhsl(238, 55%, 27%)
HSVhsv(238, 71%, 42%)
CMYKcmyk(71%, 69.2%, 0%, 58%)
CIE-LABlab(17.65, 25.37, -43.37)
CIE-LCHlch(17.65, 50.24, 300.33°)
OKLaboklab(30.05% 0.0102 -0.1252)
OKLCHoklch(30.05% 0.126 274.6)
XYZxyz(3.7619, 2.4402, 14.1798)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216B #6B691F
analogous
#1F476B #1F216B #431F6B
triadic
#1F216B #6B1F21 #216B1F
tetradic
#1F216B #6B1F47 #6B691F #1F6B43
square
#1F216B #6B1F47 #6B691F #1F6B43
split-complementary
#1F216B #6B431F #476B1F
monochromatic
#070718 #11123C #1F216B #2D309A #3D41C7

Accessibility & contrast

On white

14.11
#1F216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F216B
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216B#FFFFFF#000000##FFFFFF
##1F216B1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f216b;
/* rgb */ color: rgb(31, 33, 107);
/* oklch */ color: oklch(30.0% 0.126 274.6);
Tailwind
colors: {
  custom: {
    50: '#665c96',
    500: '#1f216b',
    950: '#000000',
  },
}
SCSS
$custom: #1f216b;
$custom-light: #665c96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216b",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 238.421,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30048,
    "c": 0.12559,
    "h": 274.6
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#1F216B
secondary
#9F9D47
accent
#DA49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F216B

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

Preview Lab → · Contrast checker → · Palette generator →

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