#1B3396#1B3396

#1B3396 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.164 H 267.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#1B3396
RGBrgb(27, 51, 150)
HSLhsl(228, 69%, 35%)
HSVhsv(228, 82%, 59%)
CMYKcmyk(82%, 66%, 0%, 41.2%)
CIE-LABlab(26.16, 29.23, -56.57)
CIE-LCHlch(26.16, 63.68, 297.32°)
OKLaboklab(37.49% -0.0086 -0.1638)
OKLCHoklch(37.49% 0.164 267)
XYZxyz(7.1389, 4.8018, 29.3988)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3396 #967E1B
analogous
#1B7096 #1B3396 #411B96
triadic
#1B3396 #961B33 #33961B
tetradic
#1B3396 #961B70 #967E1B #1B9641
square
#1B3396 #961B70 #967E1B #1B9641
split-complementary
#1B3396 #96411B #70961B
monochromatic
#08102E #122162 #1B3396 #2445CA #4D69DF

Accessibility & contrast

On white

10.71
#1B3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1B3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3396
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3396#FFFFFF#000000##FFFFFF
##1B33961.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3396;
/* rgb */ color: rgb(27, 51, 150);
/* oklch */ color: oklch(37.5% 0.164 267.0);
Tailwind
colors: {
  custom: {
    50: '#6e6ab6',
    500: '#1b3396',
    950: '#000000',
  },
}
SCSS
$custom: #1b3396;
$custom-light: #6e6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3396",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 228.293,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37485,
    "c": 0.16402,
    "h": 267
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#1B3396
secondary
#C1AA4C
accent
#CA3BEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1B3396

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

Preview Lab → · Contrast checker → · Palette generator →

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