#1B217E#1B217E

#1B217E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.153 H 271.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#1B217E
RGBrgb(27, 33, 126)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 49%)
CMYKcmyk(78.6%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.34, 32.00, -52.82)
CIE-LCHlch(19.34, 61.76, 301.21°)
OKLaboklab(31.79% 0.0029 -0.1529)
OKLCHoklch(31.79% 0.153 271.1)
XYZxyz(4.7605, 2.8266, 20.0293)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B217E #7E781B
analogous
#1B527E #1B217E #471B7E
triadic
#1B217E #7E1B21 #217E1B
tetradic
#1B217E #7E1B52 #7E781B #1B7E47
square
#1B217E #7E1B52 #7E781B #1B7E47
split-complementary
#1B217E #7E471B #527E1B
monochromatic
#050719 #10144C #1B217E #262EB0 #3E47D6

Accessibility & contrast

On white

13.42
#1B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B217E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B217E#FFFFFF#000000##FFFFFF
##1B217E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b217e;
/* rgb */ color: rgb(27, 33, 126);
/* oklch */ color: oklch(31.8% 0.153 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1b217e',
    950: '#000000',
  },
}
SCSS
$custom: #1b217e;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b217e",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 236.364,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.3179,
    "c": 0.15294,
    "h": 271.1
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#1B217E
secondary
#B2AB43
accent
#DE40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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