#1B216E#1B216E

#1B216E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.131 H 272.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#1B216E
RGBrgb(27, 33, 110)
HSLhsl(236, 61%, 27%)
HSVhsv(236, 75%, 43%)
CMYKcmyk(75.5%, 70%, 0%, 56.9%)
CIE-LABlab(17.67, 25.97, -45.28)
CIE-LCHlch(17.67, 52.20, 299.83°)
OKLaboklab(30.09% 0.0049 -0.1309)
OKLCHoklch(30.09% 0.131 272.1)
XYZxyz(3.8094, 2.4461, 15.0202)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B216E #6E681B
analogous
#1B4B6E #1B216E #3F1B6E
triadic
#1B216E #6E1B21 #216E1B
tetradic
#1B216E #6E1B4B #6E681B #1B6E3F
square
#1B216E #6E1B4B #6E681B #1B6E3F
split-complementary
#1B216E #6E3F1B #4B6E1B
monochromatic
#060719 #0F123D #1B216E #27309F #3641CE

Accessibility & contrast

On white

14.10
#1B216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B216E
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B216E#FFFFFF#000000##FFFFFF
##1B216E1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b216e;
/* rgb */ color: rgb(27, 33, 110);
/* oklch */ color: oklch(30.1% 0.131 272.1);
Tailwind
colors: {
  custom: {
    50: '#655c98',
    500: '#1b216e',
    950: '#000000',
  },
}
SCSS
$custom: #1b216e;
$custom-light: #655c98;
$custom-dark: #000000;
JSON
{
  "hex": "#1b216e",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 235.663,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30087,
    "c": 0.13099,
    "h": 272.1
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#1B216E
secondary
#A39C42
accent
#D844E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B216E

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

Preview Lab → · Contrast checker → · Palette generator →

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