#1F216E#1F216E

#1F216E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.130 H 274.4°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#1F216E
RGBrgb(31, 33, 110)
HSLhsl(238, 56%, 28%)
HSVhsv(238, 72%, 43%)
CMYKcmyk(71.8%, 70%, 0%, 56.9%)
CIE-LABlab(17.94, 26.50, -44.84)
CIE-LCHlch(17.94, 52.08, 300.58°)
OKLaboklab(30.35% 0.0099 -0.1295)
OKLCHoklch(30.35% 0.13 274.4)
XYZxyz(3.9225, 2.5044, 15.0255)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F216E #6E6C1F
analogous
#1F486E #1F216E #441F6E
triadic
#1F216E #6E1F21 #216E1F
tetradic
#1F216E #6E1F48 #6E6C1F #1F6E44
square
#1F216E #6E1F48 #6E6C1F #1F6E44
split-complementary
#1F216E #6E441F #486E1F
monochromatic
#070718 #12133E #1F216E #2C2F9E #3F42C9

Accessibility & contrast

On white

13.99
#1F216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F216E
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F216E#FFFFFF#000000##FFFFFF
##1F216E1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f216e;
/* rgb */ color: rgb(31, 33, 110);
/* oklch */ color: oklch(30.3% 0.130 274.4);
Tailwind
colors: {
  custom: {
    50: '#675c98',
    500: '#1f216e',
    950: '#000000',
  },
}
SCSS
$custom: #1f216e;
$custom-light: #675c98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f216e",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 238.481,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3035,
    "c": 0.12986,
    "h": 274.4
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#1F216E
secondary
#A2A047
accent
#DC48DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F216E

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

Preview Lab → · Contrast checker → · Palette generator →

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