#1B217D#1B217D

#1B217D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.152 H 271.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#1B217D
RGBrgb(27, 33, 125)
HSLhsl(236, 64%, 30%)
HSVhsv(236, 78%, 49%)
CMYKcmyk(78.4%, 73.6%, 0%, 51%)
CIE-LABlab(19.23, 31.63, -52.36)
CIE-LCHlch(19.23, 61.17, 301.13°)
OKLaboklab(31.68% 0.0031 -0.1516)
OKLCHoklch(31.68% 0.152 271.2)
XYZxyz(4.6963, 2.8009, 19.6912)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B217D #7D771B
analogous
#1B527D #1B217D #461B7D
triadic
#1B217D #7D1B21 #217D1B
tetradic
#1B217D #7D1B52 #7D771B #1B7D46
square
#1B217D #7D1B52 #7D771B #1B7D46
split-complementary
#1B217D #7D461B #527D1B
monochromatic
#050719 #10144B #1B217D #262EAF #3D47D5

Accessibility & contrast

On white

13.46
#1B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B217D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B217D#FFFFFF#000000##FFFFFF
##1B217D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b217d;
/* rgb */ color: rgb(27, 33, 125);
/* oklch */ color: oklch(31.7% 0.152 271.2);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1b217d',
    950: '#000000',
  },
}
SCSS
$custom: #1b217d;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b217d",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 236.327,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31681,
    "c": 0.1516,
    "h": 271.2
  },
  "luminance": 0.02801
}

Semantic roles & 50–950 ramp

primary
#1B217D
secondary
#B1AA43
accent
#DD40E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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