#1B2148#1B2148

#1B2148 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.072 H 273.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#1B2148
RGBrgb(27, 33, 72)
HSLhsl(232, 45%, 19%)
HSVhsv(232, 63%, 28%)
CMYKcmyk(62.5%, 54.2%, 0%, 71.8%)
CIE-LABlab(14.34, 10.98, -25.30)
CIE-LCHlch(14.34, 27.58, 293.47°)
OKLaboklab(26.57% 0.0049 -0.0722)
OKLCHoklch(26.57% 0.072 273.9)
XYZxyz(2.1652, 1.7884, 6.3607)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2148 #48421B
analogous
#1B3848 #1B2148 #2C1B48
triadic
#1B2148 #481B21 #21481B
tetradic
#1B2148 #481B38 #48421B #1B482C
square
#1B2148 #481B38 #48421B #1B482C
split-complementary
#1B2148 #482C1B #38481B
monochromatic
#080A16 #0A0D1B #1B2148 #2C3575 #3C4AA1

Accessibility & contrast

On white

15.47
#1B2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1B2148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2148
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2148#FFFFFF#000000##FFFFFF
##1B21481.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2649
Deuteranopia (green-blind)
#082247
Tritanopia (blue-blind)
#032A31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1b2148;
/* rgb */ color: rgb(27, 33, 72);
/* oklch */ color: oklch(26.6% 0.072 273.9);
Tailwind
colors: {
  custom: {
    50: '#5c5c7b',
    500: '#1b2148',
    950: '#000000',
  },
}
SCSS
$custom: #1b2148;
$custom-light: #5c5c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2148",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 232,
    "s": 45.455,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26568,
    "c": 0.07237,
    "h": 273.9
  },
  "luminance": 0.01789
}

Semantic roles & 50–950 ramp

primary
#1B2148
secondary
#7E7641
accent
#C453D5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #1B2148

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

Preview Lab → · Contrast checker → · Palette generator →

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