#1B3A9F#1B3A9F

#1B3A9F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.168 H 265.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1B3A9F
RGBrgb(27, 58, 159)
HSLhsl(226, 71%, 36%)
HSVhsv(226, 83%, 62%)
CMYKcmyk(83%, 63.5%, 0%, 37.6%)
CIE-LABlab(28.80, 28.01, -57.74)
CIE-LCHlch(28.80, 64.17, 295.88°)
OKLaboklab(39.69% -0.0126 -0.1671)
OKLCHoklch(39.69% 0.168 265.7)
XYZxyz(8.2209, 5.7613, 33.4729)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A9F #9F801B
analogous
#1B7C9F #1B3A9F #3E1B9F
triadic
#1B3A9F #9F1B3A #3A9F1B
tetradic
#1B3A9F #9F1B7C #9F801B #1B9F3E
square
#1B3A9F #9F1B7C #9F801B #1B9F3E
split-complementary
#1B3A9F #9F3E1B #7C9F1B
monochromatic
#091436 #12276B #1B3A9F #244DD3 #5374E2

Accessibility & contrast

On white

9.76
#1B3A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1B3A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A9F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A9F#FFFFFF#000000##FFFFFF
##1B3A9F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b3a9f;
/* rgb */ color: rgb(27, 58, 159);
/* oklch */ color: oklch(39.7% 0.168 265.7);
Tailwind
colors: {
  custom: {
    50: '#706fbc',
    500: '#1b3a9f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a9f;
$custom-light: #706fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a9f",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 225.909,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39688,
    "c": 0.16761,
    "h": 265.7
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#1B3A9F
secondary
#C5A951
accent
#C43AEE
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1B3A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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