#1B207F#1B207F

#1B207F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.155 H 271.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#1B207F
RGBrgb(27, 32, 127)
HSLhsl(237, 65%, 30%)
HSVhsv(237, 79%, 50%)
CMYKcmyk(78.7%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.22, 33.00, -53.65)
CIE-LCHlch(19.22, 62.99, 301.59°)
OKLaboklab(31.74% 0.0033 -0.1553)
OKLCHoklch(31.74% 0.155 271.2)
XYZxyz(4.7980, 2.7978, 20.3617)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B207F #7F7A1B
analogous
#1B527F #1B207F #481B7F
triadic
#1B207F #7F1B20 #207F1B
tetradic
#1B207F #7F1B52 #7F7A1B #1B7F48
square
#1B207F #7F1B52 #7F7A1B #1B7F48
split-complementary
#1B207F #7F481B #527F1B
monochromatic
#06071A #10134D #1B207F #262DB1 #3E46D6

Accessibility & contrast

On white

13.46
#1B207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B207F
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B207F#FFFFFF#000000##FFFFFF
##1B207F1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b207f;
/* rgb */ color: rgb(27, 32, 127);
/* oklch */ color: oklch(31.7% 0.155 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ca5',
    500: '#1b207f',
    950: '#000000',
  },
}
SCSS
$custom: #1b207f;
$custom-light: #6a5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b207f",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 237,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31737,
    "c": 0.15536,
    "h": 271.2
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#1B207F
secondary
#B3AD43
accent
#E040E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1B207F

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

Preview Lab → · Contrast checker → · Palette generator →

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