#1B337F#1B337F

#1B337F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.132 H 266.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#1B337F
RGBrgb(27, 51, 127)
HSLhsl(226, 65%, 30%)
HSVhsv(226, 79%, 50%)
CMYKcmyk(78.7%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.10, 20.12, -45.64)
CIE-LCHlch(24.10, 49.88, 293.79°)
OKLaboklab(35.32% -0.0086 -0.1317)
OKLCHoklch(35.32% 0.132 266.3)
XYZxyz(5.4652, 4.1324, 20.5841)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B337F #7F671B
analogous
#1B657F #1B337F #351B7F
triadic
#1B337F #7F1B33 #337F1B
tetradic
#1B337F #7F1B65 #7F671B #1B7F35
square
#1B337F #7F1B65 #7F671B #1B7F35
split-complementary
#1B337F #7F351B #657F1B
monochromatic
#060A1A #101F4D #1B337F #2647B1 #3E63D6

Accessibility & contrast

On white

11.50
#1B337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1B337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B337F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B337F#FFFFFF#000000##FFFFFF
##1B337F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b337f;
/* rgb */ color: rgb(27, 51, 127);
/* oklch */ color: oklch(35.3% 0.132 266.3);
Tailwind
colors: {
  custom: {
    50: '#686aa5',
    500: '#1b337f',
    950: '#000000',
  },
}
SCSS
$custom: #1b337f;
$custom-light: #686aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b337f",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 225.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.13203,
    "h": 266.3
  },
  "luminance": 0.04133
}

Semantic roles & 50–950 ramp

primary
#1B337F
secondary
#B39843
accent
#C040E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B337F

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

Preview Lab → · Contrast checker → · Palette generator →

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