#1B337B#1B337B

#1B337B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.126 H 266.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#1B337B
RGBrgb(27, 51, 123)
HSLhsl(225, 64%, 29%)
HSVhsv(225, 78%, 48%)
CMYKcmyk(78%, 58.5%, 0%, 51.8%)
CIE-LABlab(23.77, 18.50, -43.66)
CIE-LCHlch(23.77, 47.42, 292.97°)
OKLaboklab(34.97% -0.0088 -0.1259)
OKLCHoklch(34.97% 0.126 266)
XYZxyz(5.2097, 4.0302, 19.2384)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337B #7B631B
analogous
#1B637B #1B337B #331B7B
triadic
#1B337B #7B1B33 #337B1B
tetradic
#1B337B #7B1B63 #7B631B #1B7B33
square
#1B337B #7B1B63 #7B631B #1B7B33
split-complementary
#1B337B #7B331B #637B1B
monochromatic
#060A19 #101E49 #1B337B #2648AD #3C62D4

Accessibility & contrast

On white

11.63
#1B337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1B337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B337B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337B#FFFFFF#000000##FFFFFF
##1B337B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004551
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b337b;
/* rgb */ color: rgb(27, 51, 123);
/* oklch */ color: oklch(35.0% 0.126 266.0);
Tailwind
colors: {
  custom: {
    50: '#676aa2',
    500: '#1b337b',
    950: '#000000',
  },
}
SCSS
$custom: #1b337b;
$custom-light: #676aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337b",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 225,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34967,
    "c": 0.12623,
    "h": 266
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B337B

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

Preview Lab → · Contrast checker → · Palette generator →

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