#1B1D52#1B1D52

#1B1D52 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.095 H 276.2°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#1B1D52
RGBrgb(27, 29, 82)
HSLhsl(238, 50%, 21%)
HSVhsv(238, 67%, 32%)
CMYKcmyk(67.1%, 64.6%, 0%, 67.8%)
CIE-LABlab(13.95, 17.89, -32.78)
CIE-LCHlch(13.95, 37.34, 298.62°)
OKLaboklab(26.53% 0.0102 -0.0942)
OKLCHoklch(26.53% 0.095 276.2)
XYZxyz(2.4139, 1.7207, 8.1859)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1D52 #52501B
analogous
#1B3952 #1B1D52 #351B52
triadic
#1B1D52 #521B1D #1D521B
tetradic
#1B1D52 #521B39 #52501B #1B5235
square
#1B1D52 #521B39 #52501B #1B5235
split-complementary
#1B1D52 #52351B #39521B
monochromatic
#080817 #0C0D24 #1B1D52 #2A2D80 #393EAE

Accessibility & contrast

On white

15.62
#1B1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1B1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1D52
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1D52#FFFFFF#000000##FFFFFF
##1B1D521.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b1d52;
/* rgb */ color: rgb(27, 29, 82);
/* oklch */ color: oklch(26.5% 0.095 276.2);
Tailwind
colors: {
  custom: {
    50: '#5e5983',
    500: '#1b1d52',
    950: '#000000',
  },
}
SCSS
$custom: #1b1d52;
$custom-light: #5e5983;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1d52",
  "rgb": {
    "r": 27,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 237.818,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26535,
    "c": 0.0948,
    "h": 276.2
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#1B1D52
secondary
#888541
accent
#D54EDA
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #1B1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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