#1F216D#1F216D

#1F216D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.128 H 274.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#1F216D
RGBrgb(31, 33, 109)
HSLhsl(238, 56%, 27%)
HSVhsv(238, 72%, 43%)
CMYKcmyk(71.6%, 69.7%, 0%, 57.3%)
CIE-LABlab(17.84, 26.12, -44.35)
CIE-LCHlch(17.84, 51.47, 300.50°)
OKLaboklab(30.25% 0.01 -0.1281)
OKLCHoklch(30.25% 0.128 274.5)
XYZxyz(3.8683, 2.4828, 14.7404)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216D #6D6B1F
analogous
#1F486D #1F216D #441F6D
triadic
#1F216D #6D1F21 #216D1F
tetradic
#1F216D #6D1F48 #6D6B1F #1F6D44
square
#1F216D #6D1F48 #6D6B1F #1F6D44
split-complementary
#1F216D #6D441F #486D1F
monochromatic
#070718 #11133D #1F216D #2D2F9D #3E42C8

Accessibility & contrast

On white

14.03
#1F216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F216D
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216D#FFFFFF#000000##FFFFFF
##1F216D1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f216d;
/* rgb */ color: rgb(31, 33, 109);
/* oklch */ color: oklch(30.2% 0.128 274.5);
Tailwind
colors: {
  custom: {
    50: '#675c98',
    500: '#1f216d',
    950: '#000000',
  },
}
SCSS
$custom: #1f216d;
$custom-light: #675c98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216d",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 238.462,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30249,
    "c": 0.12845,
    "h": 274.5
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#1F216D
secondary
#A19F47
accent
#DB49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F216D

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

Preview Lab → · Contrast checker → · Palette generator →

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