#1B336B#1B336B

#1B336B is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.6% C 0.102 H 264.2°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1B336B
RGBrgb(27, 51, 107)
HSLhsl(222, 60%, 26%)
HSVhsv(222, 75%, 42%)
CMYKcmyk(74.8%, 52.3%, 0%, 58%)
CIE-LABlab(22.52, 11.97, -35.45)
CIE-LCHlch(22.52, 37.42, 288.65°)
OKLaboklab(33.62% -0.0104 -0.1018)
OKLCHoklch(33.62% 0.102 264.2)
XYZxyz(4.2887, 3.6618, 14.3878)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B336B #6B531B
analogous
#1B5B6B #1B336B #2B1B6B
triadic
#1B336B #6B1B33 #336B1B
tetradic
#1B336B #6B1B5B #6B531B #1B6B2B
square
#1B336B #6B1B5B #6B531B #1B6B2B
split-complementary
#1B336B #6B2B1B #5B6B1B
monochromatic
#060C18 #0F1C3A #1B336B #274A9C #3562CC

Accessibility & contrast

On white

12.12
#1B336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B336B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B336B#FFFFFF#000000##FFFFFF
##1B336B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b336b;
/* rgb */ color: rgb(27, 51, 107);
/* oklch */ color: oklch(33.6% 0.102 264.2);
Tailwind
colors: {
  custom: {
    50: '#636a96',
    500: '#1b336b',
    950: '#000000',
  },
}
SCSS
$custom: #1b336b;
$custom-light: #636a96;
$custom-dark: #000000;
JSON
{
  "hex": "#1b336b",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 222,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33624,
    "c": 0.10233,
    "h": 264.2
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#1B336B
secondary
#A08442
accent
#B345E3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1B336B

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

Preview Lab → · Contrast checker → · Palette generator →

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