#1B337D#1B337D

#1B337D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.129 H 266.1°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#1B337D
RGBrgb(27, 51, 125)
HSLhsl(225, 64%, 30%)
HSVhsv(225, 78%, 49%)
CMYKcmyk(78.4%, 59.2%, 0%, 51%)
CIE-LABlab(23.94, 19.32, -44.65)
CIE-LCHlch(23.94, 48.65, 293.39°)
OKLaboklab(35.14% -0.0087 -0.1288)
OKLCHoklch(35.14% 0.129 266.1)
XYZxyz(5.3362, 4.0807, 19.9045)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337D #7D651B
analogous
#1B647D #1B337D #341B7D
triadic
#1B337D #7D1B33 #337D1B
tetradic
#1B337D #7D1B64 #7D651B #1B7D34
square
#1B337D #7D1B64 #7D651B #1B7D34
split-complementary
#1B337D #7D341B #647D1B
monochromatic
#050A19 #101E4B #1B337D #2648AF #3D62D5

Accessibility & contrast

On white

11.56
#1B337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1B337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B337D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337D#FFFFFF#000000##FFFFFF
##1B337D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b337d;
/* rgb */ color: rgb(27, 51, 125);
/* oklch */ color: oklch(35.1% 0.129 266.1);
Tailwind
colors: {
  custom: {
    50: '#686aa3',
    500: '#1b337d',
    950: '#000000',
  },
}
SCSS
$custom: #1b337d;
$custom-light: #686aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337d",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 225.306,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.12914,
    "h": 266.1
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#1B337D
secondary
#B19643
accent
#BF40E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B337D

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

Preview Lab → · Contrast checker → · Palette generator →

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