#1B215F#1B215F

#1B215F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.109 H 273.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1B215F
RGBrgb(27, 33, 95)
HSLhsl(235, 56%, 24%)
HSVhsv(235, 72%, 37%)
CMYKcmyk(71.6%, 65.3%, 0%, 62.7%)
CIE-LABlab(16.24, 20.11, -37.78)
CIE-LCHlch(16.24, 42.80, 298.03°)
OKLaboklab(28.59% 0.0059 -0.1089)
OKLCHoklch(28.59% 0.109 273.1)
XYZxyz(3.0607, 2.1467, 11.0773)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B215F #5F591B
analogous
#1B435F #1B215F #371B5F
triadic
#1B215F #5F1B21 #215F1B
tetradic
#1B215F #5F1B43 #5F591B #1B5F37
square
#1B215F #5F1B43 #5F591B #1B5F37
split-complementary
#1B215F #5F371B #435F1B
monochromatic
#070818 #0D102F #1B215F #29328F #3642BE

Accessibility & contrast

On white

14.69
#1B215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B215F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B215F#FFFFFF#000000##FFFFFF
##1B215F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b215f;
/* rgb */ color: rgb(27, 33, 95);
/* oklch */ color: oklch(28.6% 0.109 273.1);
Tailwind
colors: {
  custom: {
    50: '#615c8d',
    500: '#1b215f',
    950: '#000000',
  },
}
SCSS
$custom: #1b215f;
$custom-light: #615c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b215f",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 234.706,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.10907,
    "h": 273.1
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#1B215F
secondary
#958D41
accent
#D249DF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1B215F

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

Preview Lab → · Contrast checker → · Palette generator →

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