#1B2152#1B2152

#1B2152 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.089 H 273.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#1B2152
RGBrgb(27, 33, 82)
HSLhsl(233, 50%, 21%)
HSVhsv(233, 67%, 32%)
CMYKcmyk(67.1%, 59.8%, 0%, 67.8%)
CIE-LABlab(15.11, 14.95, -30.89)
CIE-LCHlch(15.11, 34.31, 295.83°)
OKLaboklab(27.4% 0.0058 -0.0886)
OKLCHoklch(27.4% 0.089 273.8)
XYZxyz(2.5183, 1.9297, 8.2208)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2152 #524C1B
analogous
#1B3D52 #1B2152 #311B52
triadic
#1B2152 #521B21 #21521B
tetradic
#1B2152 #521B3D #524C1B #1B5231
square
#1B2152 #521B3D #524C1B #1B5231
split-complementary
#1B2152 #52311B #3D521B
monochromatic
#080917 #0C0E24 #1B2152 #2A3480 #3946AE

Accessibility & contrast

On white

15.15
#1B2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2152
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2152#FFFFFF#000000##FFFFFF
##1B21521.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012854
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b2152;
/* rgb */ color: rgb(27, 33, 82);
/* oklch */ color: oklch(27.4% 0.089 273.8);
Tailwind
colors: {
  custom: {
    50: '#5e5c83',
    500: '#1b2152',
    950: '#000000',
  },
}
SCSS
$custom: #1b2152;
$custom-light: #5e5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2152",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 233.455,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27403,
    "c": 0.08883,
    "h": 273.8
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#1B2152
secondary
#888041
accent
#CB4EDA
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #1B2152

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

Preview Lab → · Contrast checker → · Palette generator →

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