#1B2D52#1B2D52

#1B2D52 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.071 H 263.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1B2D52
RGBrgb(27, 45, 82)
HSLhsl(220, 50%, 21%)
HSVhsv(220, 67%, 32%)
CMYKcmyk(67.1%, 45.1%, 0%, 67.8%)
CIE-LABlab(18.88, 6.12, -24.84)
CIE-LCHlch(18.88, 25.58, 283.85°)
OKLaboklab(30.27% -0.0084 -0.0707)
OKLCHoklch(30.27% 0.071 263.2)
XYZxyz(2.9128, 2.7187, 8.3523)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D52 #52401B
analogous
#1B4952 #1B2D52 #251B52
triadic
#1B2D52 #521B2D #2D521B
tetradic
#1B2D52 #521B49 #52401B #1B5225
square
#1B2D52 #521B49 #52401B #1B5225
split-complementary
#1B2D52 #52251B #49521B
monochromatic
#080D17 #0C1424 #1B2D52 #2A4680 #3960AE

Accessibility & contrast

On white

13.60
#1B2D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B2D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D52
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D52#FFFFFF#000000##FFFFFF
##1B2D521.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3153
Deuteranopia (green-blind)
#152C51
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2d52;
/* rgb */ color: rgb(27, 45, 82);
/* oklch */ color: oklch(30.3% 0.071 263.2);
Tailwind
colors: {
  custom: {
    50: '#5d6583',
    500: '#1b2d52',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d52;
$custom-light: #5d6583;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d52",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 220.364,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3027,
    "c": 0.0712,
    "h": 263.2
  },
  "luminance": 0.02719
}

Semantic roles & 50–950 ramp

primary
#1B2D52
secondary
#887141
accent
#AC4EDA
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05050A
muted
#797A7C

Preview Lab

Preview with #1B2D52

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

Preview Lab → · Contrast checker → · Palette generator →

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