#1B2A52#1B2A52

#1B2A52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.075 H 266.4°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#1B2A52
RGBrgb(27, 42, 82)
HSLhsl(224, 50%, 21%)
HSVhsv(224, 67%, 32%)
CMYKcmyk(67.1%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.91, 8.31, -26.39)
CIE-LCHlch(17.91, 27.67, 287.47°)
OKLaboklab(29.52% -0.0047 -0.0753)
OKLCHoklch(29.52% 0.075 266.4)
XYZxyz(2.8024, 2.4979, 8.3155)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A52 #52431B
analogous
#1B4652 #1B2A52 #281B52
triadic
#1B2A52 #521B2A #2A521B
tetradic
#1B2A52 #521B46 #52431B #1B5228
square
#1B2A52 #521B46 #52431B #1B5228
split-complementary
#1B2A52 #52281B #46521B
monochromatic
#080C17 #0C1224 #1B2A52 #2A4280 #3959AE

Accessibility & contrast

On white

14.00
#1B2A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B2A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A52
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A52#FFFFFF#000000##FFFFFF
##1B2A521.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E54
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2a52;
/* rgb */ color: rgb(27, 42, 82);
/* oklch */ color: oklch(29.5% 0.075 266.4);
Tailwind
colors: {
  custom: {
    50: '#5e6383',
    500: '#1b2a52',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a52;
$custom-light: #5e6383;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a52",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 223.636,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29523,
    "c": 0.07544,
    "h": 266.4
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#1B2A52
secondary
#887541
accent
#B44EDA
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050A
muted
#79797C

Preview Lab

Preview with #1B2A52

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

Preview Lab → · Contrast checker → · Palette generator →

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