#1B216F#1B216F

#1B216F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.132 H 272.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#1B216F
RGBrgb(27, 33, 111)
HSLhsl(236, 61%, 27%)
HSVhsv(236, 76%, 44%)
CMYKcmyk(75.7%, 70.3%, 0%, 56.5%)
CIE-LABlab(17.77, 26.35, -45.77)
CIE-LCHlch(17.77, 52.81, 299.93°)
OKLaboklab(30.19% 0.0048 -0.1323)
OKLCHoklch(30.19% 0.132 272.1)
XYZxyz(3.8641, 2.4680, 15.3086)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B216F #6F691B
analogous
#1B4B6F #1B216F #3F1B6F
triadic
#1B216F #6F1B21 #216F1B
tetradic
#1B216F #6F1B4B #6F691B #1B6F3F
square
#1B216F #6F1B4B #6F691B #1B6F3F
split-complementary
#1B216F #6F3F1B #4B6F1B
monochromatic
#060719 #0F123E #1B216F #2730A0 #3641CE

Accessibility & contrast

On white

14.06
#1B216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B216F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B216F#FFFFFF#000000##FFFFFF
##1B216F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b216f;
/* rgb */ color: rgb(27, 33, 111);
/* oklch */ color: oklch(30.2% 0.132 272.1);
Tailwind
colors: {
  custom: {
    50: '#655c99',
    500: '#1b216f',
    950: '#000000',
  },
}
SCSS
$custom: #1b216f;
$custom-light: #655c99;
$custom-dark: #000000;
JSON
{
  "hex": "#1b216f",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 235.714,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3019,
    "c": 0.13241,
    "h": 272.1
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#1B216F
secondary
#A49D42
accent
#D944E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B216F

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

Preview Lab → · Contrast checker → · Palette generator →

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