#1B509E#1B509E

#1B509E is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.139 H 258.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#1B509E
RGBrgb(27, 80, 158)
HSLhsl(216, 71%, 36%)
HSVhsv(216, 83%, 62%)
CMYKcmyk(82.9%, 49.4%, 0%, 38%)
CIE-LABlab(34.88, 12.65, -47.26)
CIE-LCHlch(34.88, 48.92, 284.99°)
OKLaboklab(44.25% -0.0274 -0.1359)
OKLCHoklch(44.25% 0.139 258.6)
XYZxyz(9.4899, 8.4378, 33.4696)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B509E #9E691B
analogous
#1B929E #1B509E #271B9E
triadic
#1B509E #9E1B50 #509E1B
tetradic
#1B509E #9E1B92 #9E691B #1B9E27
square
#1B509E #9E1B92 #9E691B #1B9E27
split-complementary
#1B509E #9E271B #929E1B
monochromatic
#091B35 #12366A #1B509E #246AD2 #528CE1

Accessibility & contrast

On white

7.81
#1B509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1B509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B509E
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B509E#FFFFFF#000000##FFFFFF
##1B509E1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1b509e;
/* rgb */ color: rgb(27, 80, 158);
/* oklch */ color: oklch(44.3% 0.139 258.6);
Tailwind
colors: {
  custom: {
    50: '#6e80bb',
    500: '#1b509e',
    950: '#000000',
  },
}
SCSS
$custom: #1b509e;
$custom-light: #6e80bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b509e",
  "rgb": {
    "r": 27,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 215.725,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44254,
    "c": 0.13867,
    "h": 258.6
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#1B509E
secondary
#C49551
accent
#A53AEE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A12
muted
#7B7C81

Preview Lab

Preview with #1B509E

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

Preview Lab → · Contrast checker → · Palette generator →

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