#1B337E#1B337E

#1B337E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.131 H 266.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#1B337E
RGBrgb(27, 51, 126)
HSLhsl(225, 65%, 30%)
HSVhsv(225, 79%, 49%)
CMYKcmyk(78.6%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.02, 19.72, -45.15)
CIE-LCHlch(24.02, 49.27, 293.60°)
OKLaboklab(35.23% -0.0086 -0.1303)
OKLCHoklch(35.23% 0.131 266.2)
XYZxyz(5.4004, 4.1064, 20.2426)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337E #7E661B
analogous
#1B647E #1B337E #351B7E
triadic
#1B337E #7E1B33 #337E1B
tetradic
#1B337E #7E1B64 #7E661B #1B7E35
square
#1B337E #7E1B64 #7E661B #1B7E35
split-complementary
#1B337E #7E351B #647E1B
monochromatic
#050A19 #101F4C #1B337E #2647B0 #3E63D6

Accessibility & contrast

On white

11.53
#1B337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B337E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337E#FFFFFF#000000##FFFFFF
##1B337E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b337e;
/* rgb */ color: rgb(27, 51, 126);
/* oklch */ color: oklch(35.2% 0.131 266.2);
Tailwind
colors: {
  custom: {
    50: '#686aa4',
    500: '#1b337e',
    950: '#000000',
  },
}
SCSS
$custom: #1b337e;
$custom-light: #686aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337e",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 225.455,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.35232,
    "c": 0.13059,
    "h": 266.2
  },
  "luminance": 0.04107
}

Semantic roles & 50–950 ramp

primary
#1B337E
secondary
#B29743
accent
#BF40E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B337E

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

Preview Lab → · Contrast checker → · Palette generator →

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