#1B2A9E#1B2A9E

#1B2A9E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.185 H 268.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#1B2A9E
RGBrgb(27, 42, 158)
HSLhsl(233, 71%, 36%)
HSVhsv(233, 83%, 62%)
CMYKcmyk(82.9%, 73.4%, 0%, 38%)
CIE-LABlab(24.82, 38.04, -63.68)
CIE-LCHlch(24.82, 74.18, 300.85°)
OKLaboklab(36.75% -0.0052 -0.1845)
OKLCHoklch(36.75% 0.185 268.4)
XYZxyz(7.4494, 4.3567, 32.7894)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A9E #9E8F1B
analogous
#1B6C9E #1B2A9E #4E1B9E
triadic
#1B2A9E #9E1B2A #2A9E1B
tetradic
#1B2A9E #9E1B6C #9E8F1B #1B9E4E
square
#1B2A9E #9E1B6C #9E8F1B #1B9E4E
split-complementary
#1B2A9E #9E4E1B #6C9E1B
monochromatic
#090E35 #121C6A #1B2A9E #2438D2 #5262E1

Accessibility & contrast

On white

11.22
#1B2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1B2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A9E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A9E#FFFFFF#000000##FFFFFF
##1B2A9E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b2a9e;
/* rgb */ color: rgb(27, 42, 158);
/* oklch */ color: oklch(36.8% 0.185 268.4);
Tailwind
colors: {
  custom: {
    50: '#7164bc',
    500: '#1b2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a9e;
$custom-light: #7164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a9e",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 233.13,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36751,
    "c": 0.18462,
    "h": 268.4
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#1B2A9E
secondary
#C4B751
accent
#D93AEE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1B2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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