#1F216F#1F216F

#1F216F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.131 H 274.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1F216F
RGBrgb(31, 33, 111)
HSLhsl(239, 56%, 28%)
HSVhsv(239, 72%, 44%)
CMYKcmyk(72.1%, 70.3%, 0%, 56.5%)
CIE-LABlab(18.04, 26.87, -45.32)
CIE-LCHlch(18.04, 52.69, 300.67°)
OKLaboklab(30.45% 0.0098 -0.1309)
OKLCHoklch(30.45% 0.131 274.3)
XYZxyz(3.9772, 2.5263, 15.3139)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216F #6F6D1F
analogous
#1F496F #1F216F #451F6F
triadic
#1F216F #6F1F21 #216F1F
tetradic
#1F216F #6F1F49 #6F6D1F #1F6F45
square
#1F216F #6F1F49 #6F6D1F #1F6F45
split-complementary
#1F216F #6F451F #496F1F
monochromatic
#070718 #12133F #1F216F #2C2F9F #3F42C9

Accessibility & contrast

On white

13.95
#1F216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F216F
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216F#FFFFFF#000000##FFFFFF
##1F216F1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f216f;
/* rgb */ color: rgb(31, 33, 111);
/* oklch */ color: oklch(30.5% 0.131 274.3);
Tailwind
colors: {
  custom: {
    50: '#675c99',
    500: '#1f216f',
    950: '#000000',
  },
}
SCSS
$custom: #1f216f;
$custom-light: #675c99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216f",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 238.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.13127,
    "h": 274.3
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#1F216F
secondary
#A3A147
accent
#DC48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F216F

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

Preview Lab → · Contrast checker → · Palette generator →

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