#1B2154#1B2154

#1B2154 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.092 H 273.7°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#1B2154
RGBrgb(27, 33, 84)
HSLhsl(234, 51%, 22%)
HSVhsv(234, 68%, 33%)
CMYKcmyk(67.9%, 60.7%, 0%, 67.1%)
CIE-LABlab(15.28, 15.75, -31.97)
CIE-LCHlch(15.28, 35.64, 296.22°)
OKLaboklab(27.58% 0.0059 -0.0918)
OKLCHoklch(27.58% 0.092 273.7)
XYZxyz(2.5956, 1.9606, 8.6274)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2154 #544E1B
analogous
#1B3E54 #1B2154 #321B54
triadic
#1B2154 #541B21 #21541B
tetradic
#1B2154 #541B3E #544E1B #1B5432
square
#1B2154 #541B3E #544E1B #1B5432
split-complementary
#1B2154 #54321B #3E541B
monochromatic
#070917 #0C0F26 #1B2154 #2A3382 #3945B1

Accessibility & contrast

On white

15.08
#1B2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2154
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2154#FFFFFF#000000##FFFFFF
##1B21541.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b2154;
/* rgb */ color: rgb(27, 33, 84);
/* oklch */ color: oklch(27.6% 0.092 273.7);
Tailwind
colors: {
  custom: {
    50: '#5f5c85',
    500: '#1b2154',
    950: '#000000',
  },
}
SCSS
$custom: #1b2154;
$custom-light: #5f5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2154",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 233.684,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27579,
    "c": 0.09203,
    "h": 273.7
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#1B2154
secondary
#8A8241
accent
#CC4DDB
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1B2154

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

Preview Lab → · Contrast checker → · Palette generator →

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