#1B207E#1B207E

#1B207E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.154 H 271.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#1B207E
RGBrgb(27, 32, 126)
HSLhsl(237, 65%, 30%)
HSVhsv(237, 79%, 49%)
CMYKcmyk(78.6%, 74.6%, 0%, 50.6%)
CIE-LABlab(19.11, 32.63, -53.20)
CIE-LCHlch(19.11, 62.41, 301.52°)
OKLaboklab(31.63% 0.0034 -0.154)
OKLCHoklch(31.63% 0.154 271.3)
XYZxyz(4.7331, 2.7719, 20.0202)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B207E #7E791B
analogous
#1B517E #1B207E #481B7E
triadic
#1B207E #7E1B20 #207E1B
tetradic
#1B207E #7E1B51 #7E791B #1B7E48
square
#1B207E #7E1B51 #7E791B #1B7E48
split-complementary
#1B207E #7E481B #517E1B
monochromatic
#050619 #10134C #1B207E #262DB0 #3E45D6

Accessibility & contrast

On white

13.51
#1B207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B207E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B207E#FFFFFF#000000##FFFFFF
##1B207E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b207e;
/* rgb */ color: rgb(27, 32, 126);
/* oklch */ color: oklch(31.6% 0.154 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a5ca4',
    500: '#1b207e',
    950: '#000000',
  },
}
SCSS
$custom: #1b207e;
$custom-light: #6a5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b207e",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 236.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.15405,
    "h": 271.3
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#1B207E
secondary
#B2AC43
accent
#DF40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B207E

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

Preview Lab → · Contrast checker → · Palette generator →

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