#1B3394#1B3394

#1B3394 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.161 H 267.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1B3394
RGBrgb(27, 51, 148)
HSLhsl(228, 69%, 34%)
HSVhsv(228, 82%, 58%)
CMYKcmyk(81.8%, 65.5%, 0%, 42%)
CIE-LABlab(25.97, 28.45, -55.65)
CIE-LCHlch(25.97, 62.50, 297.08°)
OKLaboklab(37.29% -0.0085 -0.1611)
OKLCHoklch(37.29% 0.161 267)
XYZxyz(6.9792, 4.7380, 28.5579)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3394 #947C1B
analogous
#1B7094 #1B3394 #401B94
triadic
#1B3394 #941B33 #33941B
tetradic
#1B3394 #941B70 #947C1B #1B9440
square
#1B3394 #941B70 #947C1B #1B9440
split-complementary
#1B3394 #94401B #70941B
monochromatic
#080F2C #122160 #1B3394 #2445C8 #4B68DE

Accessibility & contrast

On white

10.78
#1B3394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1B3394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3394
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3394#FFFFFF#000000##FFFFFF
##1B33941.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003892
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b3394;
/* rgb */ color: rgb(27, 51, 148);
/* oklch */ color: oklch(37.3% 0.161 267.0);
Tailwind
colors: {
  custom: {
    50: '#6e6ab4',
    500: '#1b3394',
    950: '#000000',
  },
}
SCSS
$custom: #1b3394;
$custom-light: #6e6ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3394",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 148
  },
  "hsl": {
    "h": 228.099,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3729,
    "c": 0.16133,
    "h": 267
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#1B3394
secondary
#C0A94B
accent
#C93CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1B3394

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

Preview Lab → · Contrast checker → · Palette generator →

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