#1B215A#1B215A

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

Color values

HEX#1B215A
RGBrgb(27, 33, 90)
HSLhsl(234, 54%, 23%)
HSVhsv(234, 70%, 35%)
CMYKcmyk(70%, 63.3%, 0%, 64.7%)
CIE-LABlab(15.79, 18.13, -35.18)
CIE-LCHlch(15.79, 39.57, 297.27°)
OKLaboklab(28.12% 0.006 -0.1013)
OKLCHoklch(28.12% 0.101 273.4)
XYZxyz(2.8407, 2.0587, 9.9185)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B215A #5A541B
analogous
#1B405A #1B215A #341B5A
triadic
#1B215A #5A1B21 #215A1B
tetradic
#1B215A #5A1B40 #5A541B #1B5A34
square
#1B215A #5A1B40 #5A541B #1B5A34
split-complementary
#1B215A #5A341B #405A1B
monochromatic
#070918 #0D102B #1B215A #293289 #3744B8

Accessibility & contrast

On white

14.87
#1B215A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1B215A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B215A
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B215A#FFFFFF#000000##FFFFFF
##1B215A1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b215a;
/* rgb */ color: rgb(27, 33, 90);
/* oklch */ color: oklch(28.1% 0.101 273.4);
Tailwind
colors: {
  custom: {
    50: '#605c89',
    500: '#1b215a',
    950: '#000000',
  },
}
SCSS
$custom: #1b215a;
$custom-light: #605c89;
$custom-dark: #000000;
JSON
{
  "hex": "#1b215a",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 90
  },
  "hsl": {
    "h": 234.286,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28123,
    "c": 0.10144,
    "h": 273.4
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#1B215A
secondary
#908841
accent
#CF4BDD
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #1B215A

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

Preview Lab → · Contrast checker → · Palette generator →

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