#1B337A#1B337A

#1B337A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.125 H 265.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1B337A
RGBrgb(27, 51, 122)
HSLhsl(225, 64%, 29%)
HSVhsv(225, 78%, 48%)
CMYKcmyk(77.9%, 58.2%, 0%, 52.2%)
CIE-LABlab(23.69, 18.10, -43.16)
CIE-LCHlch(23.69, 46.80, 292.75°)
OKLaboklab(34.88% -0.0089 -0.1244)
OKLCHoklch(34.88% 0.125 265.9)
XYZxyz(5.1474, 4.0052, 18.9104)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337A #7A621B
analogous
#1B637A #1B337A #331B7A
triadic
#1B337A #7A1B33 #337A1B
tetradic
#1B337A #7A1B63 #7A621B #1B7A33
square
#1B337A #7A1B63 #7A621B #1B7A33
split-complementary
#1B337A #7A331B #637A1B
monochromatic
#060A19 #101E48 #1B337A #2648AC #3C62D4

Accessibility & contrast

On white

11.66
#1B337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1B337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B337A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337A#FFFFFF#000000##FFFFFF
##1B337A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b337a;
/* rgb */ color: rgb(27, 51, 122);
/* oklch */ color: oklch(34.9% 0.125 265.9);
Tailwind
colors: {
  custom: {
    50: '#676aa1',
    500: '#1b337a',
    950: '#000000',
  },
}
SCSS
$custom: #1b337a;
$custom-light: #676aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337a",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 224.842,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34879,
    "c": 0.12477,
    "h": 265.9
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#1B337A
secondary
#AE9343
accent
#BD41E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B337A

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

Preview Lab → · Contrast checker → · Palette generator →

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