#1B2452#1B2452

#1B2452 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.084 H 271.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#1B2452
RGBrgb(27, 36, 82)
HSLhsl(230, 50%, 21%)
HSVhsv(230, 67%, 32%)
CMYKcmyk(67.1%, 56.1%, 0%, 67.8%)
CIE-LABlab(16.02, 12.73, -29.42)
CIE-LCHlch(16.02, 32.06, 293.40°)
OKLaboklab(28.09% 0.0024 -0.0843)
OKLCHoklch(28.09% 0.084 271.6)
XYZxyz(2.6054, 2.1037, 8.2498)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2452 #52491B
analogous
#1B4052 #1B2452 #2E1B52
triadic
#1B2452 #521B24 #24521B
tetradic
#1B2452 #521B40 #52491B #1B522E
square
#1B2452 #521B40 #52491B #1B522E
split-complementary
#1B2452 #522E1B #40521B
monochromatic
#080A17 #0C1024 #1B2452 #2A3880 #394CAE

Accessibility & contrast

On white

14.78
#1B2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2452
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2452#FFFFFF#000000##FFFFFF
##1B24521.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2A54
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b2452;
/* rgb */ color: rgb(27, 36, 82);
/* oklch */ color: oklch(28.1% 0.084 271.6);
Tailwind
colors: {
  custom: {
    50: '#5e5e83',
    500: '#1b2452',
    950: '#000000',
  },
}
SCSS
$custom: #1b2452;
$custom-light: #5e5e83;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2452",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 230.182,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28087,
    "c": 0.08431,
    "h": 271.6
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#1B2452
secondary
#887C41
accent
#C34EDA
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #1B2452

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

Preview Lab → · Contrast checker → · Palette generator →

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