#1B1D97#1B1D97

#1B1D97 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.188 H 270.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1B1D97
RGBrgb(27, 29, 151)
HSLhsl(239, 70%, 35%)
HSVhsv(239, 82%, 59%)
CMYKcmyk(82.1%, 80.8%, 0%, 40.8%)
CIE-LABlab(21.38, 43.10, -65.08)
CIE-LCHlch(21.38, 78.06, 303.52°)
OKLaboklab(34.08% 0 -0.1885)
OKLCHoklch(34.08% 0.188 270)
XYZxyz(6.4754, 3.3454, 29.5766)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1D97 #97951B
analogous
#1B5B97 #1B1D97 #571B97
triadic
#1B1D97 #971B1D #1D971B
tetradic
#1B1D97 #971B5B #97951B #1B9757
square
#1B1D97 #971B5B #97951B #1B9757
split-complementary
#1B1D97 #97571B #5B971B
monochromatic
#08092F #121363 #1B1D97 #2427CB #4D50DF

Accessibility & contrast

On white

12.58
#1B1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1D97
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1D97#FFFFFF#000000##FFFFFF
##1B1D971.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002D95
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b1d97;
/* rgb */ color: rgb(27, 29, 151);
/* oklch */ color: oklch(34.1% 0.188 270.0);
Tailwind
colors: {
  custom: {
    50: '#715cb7',
    500: '#1b1d97',
    950: '#000000',
  },
}
SCSS
$custom: #1b1d97;
$custom-light: #715cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1d97",
  "rgb": {
    "r": 27,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 239.032,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34079,
    "c": 0.18848,
    "h": 270
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#1B1D97
secondary
#C1C04C
accent
#EA3BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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