#1B3281#1B3281

#1B3281 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.136 H 266.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#1B3281
RGBrgb(27, 50, 129)
HSLhsl(226, 65%, 31%)
HSVhsv(226, 79%, 51%)
CMYKcmyk(79.1%, 61.2%, 0%, 49.4%)
CIE-LABlab(23.99, 21.63, -47.08)
CIE-LCHlch(23.99, 51.81, 294.68°)
OKLaboklab(35.29% -0.0078 -0.136)
OKLCHoklch(35.29% 0.136 266.7)
XYZxyz(5.5537, 4.0986, 21.2630)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3281 #816A1B
analogous
#1B6581 #1B3281 #371B81
triadic
#1B3281 #811B32 #32811B
tetradic
#1B3281 #811B65 #816A1B #1B8137
square
#1B3281 #811B65 #816A1B #1B8137
split-complementary
#1B3281 #81371B #65811B
monochromatic
#060B1C #101E4E #1B3281 #2646B4 #3F62D7

Accessibility & contrast

On white

11.54
#1B3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1B3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3281
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3281#FFFFFF#000000##FFFFFF
##1B32811.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b3281;
/* rgb */ color: rgb(27, 50, 129);
/* oklch */ color: oklch(35.3% 0.136 266.7);
Tailwind
colors: {
  custom: {
    50: '#6969a6',
    500: '#1b3281',
    950: '#000000',
  },
}
SCSS
$custom: #1b3281;
$custom-light: #6969a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3281",
  "rgb": {
    "r": 27,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 226.471,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.13621,
    "h": 266.7
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#1B3281
secondary
#B59B43
accent
#C23FE8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B3281

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

Preview Lab → · Contrast checker → · Palette generator →

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