#1B3374#1B3374

#1B3374 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.116 H 265.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#1B3374
RGBrgb(27, 51, 116)
HSLhsl(224, 62%, 28%)
HSVhsv(224, 77%, 45%)
CMYKcmyk(76.7%, 56%, 0%, 54.5%)
CIE-LABlab(23.21, 15.65, -40.12)
CIE-LCHlch(23.21, 43.07, 291.31°)
OKLaboklab(34.36% -0.0093 -0.1155)
OKLCHoklch(34.36% 0.116 265.4)
XYZxyz(4.7871, 3.8611, 17.0126)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3374 #745C1B
analogous
#1B5F74 #1B3374 #2F1B74
triadic
#1B3374 #741B33 #33741B
tetradic
#1B3374 #741B5F #745C1B #1B742F
square
#1B3374 #741B5F #745C1B #1B742F
split-complementary
#1B3374 #742F1B #5F741B
monochromatic
#060B19 #0F1D42 #1B3374 #2749A6 #3962D1

Accessibility & contrast

On white

11.85
#1B3374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B3374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3374
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3374#FFFFFF#000000##FFFFFF
##1B33741.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023C76
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#00434E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b3374;
/* rgb */ color: rgb(27, 51, 116);
/* oklch */ color: oklch(34.4% 0.116 265.4);
Tailwind
colors: {
  custom: {
    50: '#656a9d',
    500: '#1b3374',
    950: '#000000',
  },
}
SCSS
$custom: #1b3374;
$custom-light: #656a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3374",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 223.82,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34364,
    "c": 0.11591,
    "h": 265.4
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#1B3374
secondary
#A98D42
accent
#B942E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B3374

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

Preview Lab → · Contrast checker → · Palette generator →

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