#1B3151#1B3151

#1B3151 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.064 H 257.7°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#1B3151
RGBrgb(27, 49, 81)
HSLhsl(216, 50%, 21%)
HSVhsv(216, 67%, 32%)
CMYKcmyk(66.7%, 39.5%, 0%, 68.2%)
CIE-LABlab(20.14, 2.86, -22.18)
CIE-LCHlch(20.14, 22.36, 277.35°)
OKLaboklab(31.22% -0.0136 -0.0628)
OKLCHoklch(31.22% 0.064 257.7)
XYZxyz(3.0350, 3.0234, 8.2066)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3151 #513B1B
analogous
#1B4C51 #1B3151 #201B51
triadic
#1B3151 #511B31 #31511B
tetradic
#1B3151 #511B4C #513B1B #1B5120
square
#1B3151 #511B4C #513B1B #1B5120
split-complementary
#1B3151 #51201B #4C511B
monochromatic
#080E17 #0C1523 #1B3151 #2A4D7F #3A69AD

Accessibility & contrast

On white

13.09
#1B3151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B3151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3151
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3151#FFFFFF#000000##FFFFFF
##1B31511.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233352
Deuteranopia (green-blind)
#1C2E50
Tritanopia (blue-blind)
#00383D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b3151;
/* rgb */ color: rgb(27, 49, 81);
/* oklch */ color: oklch(31.2% 0.064 257.7);
Tailwind
colors: {
  custom: {
    50: '#5d6882',
    500: '#1b3151',
    950: '#000000',
  },
}
SCSS
$custom: #1b3151;
$custom-light: #5d6882;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3151",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 215.556,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31224,
    "c": 0.06432,
    "h": 257.7
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#1B3151
secondary
#876A41
accent
#A14EDA
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1B3151

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

Preview Lab → · Contrast checker → · Palette generator →

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