#1B208C#1B208C

#1B208C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.172 H 270.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1B208C
RGBrgb(27, 32, 140)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 55%)
CMYKcmyk(80.7%, 77.1%, 0%, 45.1%)
CIE-LABlab(20.67, 37.66, -59.43)
CIE-LCHlch(20.67, 70.36, 302.36°)
OKLaboklab(33.2% 0.0011 -0.1721)
OKLCHoklch(33.2% 0.172 270.4)
XYZxyz(5.7005, 3.1588, 25.1151)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B208C #8C871B
analogous
#1B598C #1B208C #4E1B8C
triadic
#1B208C #8C1B20 #208C1B
tetradic
#1B208C #8C1B59 #8C871B #1B8C4E
square
#1B208C #8C1B59 #8C871B #1B8C4E
split-complementary
#1B208C #8C4E1B #598C1B
monochromatic
#070925 #111459 #1B208C #252CBF #464DDB

Accessibility & contrast

On white

12.87
#1B208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B208C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B208C#FFFFFF#000000##FFFFFF
##1B208C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b208c;
/* rgb */ color: rgb(27, 32, 140);
/* oklch */ color: oklch(33.2% 0.172 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d5daf',
    500: '#1b208c',
    950: '#000000',
  },
}
SCSS
$custom: #1b208c;
$custom-light: #6d5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b208c",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 237.345,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33203,
    "c": 0.17213,
    "h": 270.4
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#1B208C
secondary
#BDB846
accent
#E33DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B208C

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

Preview Lab → · Contrast checker → · Palette generator →

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