#1B3152#1B3152

#1B3152 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.066 H 258.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#1B3152
RGBrgb(27, 49, 82)
HSLhsl(216, 50%, 21%)
HSVhsv(216, 67%, 32%)
CMYKcmyk(67.1%, 40.2%, 0%, 67.8%)
CIE-LABlab(20.20, 3.26, -22.75)
CIE-LCHlch(20.20, 22.98, 278.15°)
OKLaboklab(31.29% -0.0134 -0.0645)
OKLCHoklch(31.29% 0.066 258.3)
XYZxyz(3.0728, 3.0386, 8.4056)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3152 #523C1B
analogous
#1B4D52 #1B3152 #211B52
triadic
#1B3152 #521B31 #31521B
tetradic
#1B3152 #521B4D #523C1B #1B5221
square
#1B3152 #521B4D #523C1B #1B5221
split-complementary
#1B3152 #52211B #4D521B
monochromatic
#080E17 #0C1524 #1B3152 #2A4D80 #3968AE

Accessibility & contrast

On white

13.06
#1B3152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B3152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3152
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3152#FFFFFF#000000##FFFFFF
##1B31521.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b3152;
/* rgb */ color: rgb(27, 49, 82);
/* oklch */ color: oklch(31.3% 0.066 258.3);
Tailwind
colors: {
  custom: {
    50: '#5d6883',
    500: '#1b3152',
    950: '#000000',
  },
}
SCSS
$custom: #1b3152;
$custom-light: #5d6883;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3152",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 82
  },
  "hsl": {
    "h": 216,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31291,
    "c": 0.06589,
    "h": 258.3
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#1B3152
secondary
#886B41
accent
#A24EDA
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1B3152

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

Preview Lab → · Contrast checker → · Palette generator →

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