#1B208E#1B208E

#1B208E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.175 H 270.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1B208E
RGBrgb(27, 32, 142)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 56%)
CMYKcmyk(81%, 77.5%, 0%, 44.3%)
CIE-LABlab(20.90, 38.36, -60.30)
CIE-LCHlch(20.90, 71.47, 302.46°)
OKLaboklab(33.43% 0.0008 -0.1746)
OKLCHoklch(33.43% 0.175 270.2)
XYZxyz(5.8493, 3.2184, 25.8989)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B208E #8E891B
analogous
#1B598E #1B208E #4F1B8E
triadic
#1B208E #8E1B20 #208E1B
tetradic
#1B208E #8E1B59 #8E891B #1B8E4F
square
#1B208E #8E1B59 #8E891B #1B8E4F
split-complementary
#1B208E #8E4F1B #598E1B
monochromatic
#070927 #11145B #1B208E #252CC1 #474EDC

Accessibility & contrast

On white

12.78
#1B208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B208E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B208E#FFFFFF#000000##FFFFFF
##1B208E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b208e;
/* rgb */ color: rgb(27, 32, 142);
/* oklch */ color: oklch(33.4% 0.175 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e5db0',
    500: '#1b208e',
    950: '#000000',
  },
}
SCSS
$custom: #1b208e;
$custom-light: #6e5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b208e",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 237.391,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33432,
    "c": 0.17465,
    "h": 270.2
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#1B208E
secondary
#BEB947
accent
#E33DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B208E

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

Preview Lab → · Contrast checker → · Palette generator →

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