#1B217F#1B217F

#1B217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.154 H 271.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1B217F
RGBrgb(27, 33, 127)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 50%)
CMYKcmyk(78.7%, 74%, 0%, 50.2%)
CIE-LABlab(19.44, 32.37, -53.28)
CIE-LCHlch(19.44, 62.34, 301.28°)
OKLaboklab(31.9% 0.0028 -0.1542)
OKLCHoklch(31.9% 0.154 271)
XYZxyz(4.8253, 2.8525, 20.3708)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B217F #7F791B
analogous
#1B537F #1B217F #471B7F
triadic
#1B217F #7F1B21 #217F1B
tetradic
#1B217F #7F1B53 #7F791B #1B7F47
square
#1B217F #7F1B53 #7F791B #1B7F47
split-complementary
#1B217F #7F471B #537F1B
monochromatic
#06071A #10144D #1B217F #262EB1 #3E47D6

Accessibility & contrast

On white

13.37
#1B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B217F
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B217F#FFFFFF#000000##FFFFFF
##1B217F1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b217f;
/* rgb */ color: rgb(27, 33, 127);
/* oklch */ color: oklch(31.9% 0.154 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a5da5',
    500: '#1b217f',
    950: '#000000',
  },
}
SCSS
$custom: #1b217f;
$custom-light: #6a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b217f",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 236.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.319,
    "c": 0.15426,
    "h": 271
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#1B217F
secondary
#B3AC43
accent
#DE40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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