#1B217A#1B217A

#1B217A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.148 H 271.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1B217A
RGBrgb(27, 33, 122)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 48%)
CMYKcmyk(77.9%, 73%, 0%, 52.2%)
CIE-LABlab(18.91, 30.51, -50.98)
CIE-LCHlch(18.91, 59.41, 300.90°)
OKLaboklab(31.36% 0.0035 -0.1475)
OKLCHoklch(31.36% 0.148 271.3)
XYZxyz(4.5075, 2.7254, 18.6971)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B217A #7A741B
analogous
#1B517A #1B217A #451B7A
triadic
#1B217A #7A1B21 #217A1B
tetradic
#1B217A #7A1B51 #7A741B #1B7A45
square
#1B217A #7A1B51 #7A741B #1B7A45
split-complementary
#1B217A #7A451B #517A1B
monochromatic
#060719 #101348 #1B217A #262FAC #3C45D4

Accessibility & contrast

On white

13.59
#1B217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B217A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B217A#FFFFFF#000000##FFFFFF
##1B217A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b217a;
/* rgb */ color: rgb(27, 33, 122);
/* oklch */ color: oklch(31.4% 0.148 271.3);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1b217a',
    950: '#000000',
  },
}
SCSS
$custom: #1b217a;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b217a",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 236.211,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31356,
    "c": 0.14757,
    "h": 271.3
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#1B217A
secondary
#AEA743
accent
#DC41E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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