#1F216C#1F216C

#1F216C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.127 H 274.6°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#1F216C
RGBrgb(31, 33, 108)
HSLhsl(238, 55%, 27%)
HSVhsv(238, 71%, 42%)
CMYKcmyk(71.3%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.74, 25.75, -43.86)
CIE-LCHlch(17.74, 50.86, 300.42°)
OKLaboklab(30.15% 0.0101 -0.1266)
OKLCHoklch(30.15% 0.127 274.6)
XYZxyz(3.8148, 2.4614, 14.4585)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216C #6C6A1F
analogous
#1F476C #1F216C #441F6C
triadic
#1F216C #6C1F21 #216C1F
tetradic
#1F216C #6C1F47 #6C6A1F #1F6C44
square
#1F216C #6C1F47 #6C6A1F #1F6C44
split-complementary
#1F216C #6C441F #476C1F
monochromatic
#070718 #11123C #1F216C #2D309C #3E41C8

Accessibility & contrast

On white

14.07
#1F216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F216C
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216C#FFFFFF#000000##FFFFFF
##1F216C1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f216c;
/* rgb */ color: rgb(31, 33, 108);
/* oklch */ color: oklch(30.1% 0.127 274.6);
Tailwind
colors: {
  custom: {
    50: '#665c97',
    500: '#1f216c',
    950: '#000000',
  },
}
SCSS
$custom: #1f216c;
$custom-light: #665c97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216c",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 238.442,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30148,
    "c": 0.12702,
    "h": 274.6
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#1F216C
secondary
#A09E47
accent
#DB49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #1F216C

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

Preview Lab → · Contrast checker → · Palette generator →

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