#1B0F5C#1B0F5C

#1B0F5C is a dark, vivid blue. Relative luminance 0.013; OKLCH L 25.2% C 0.127 H 279.2°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#1B0F5C
RGBrgb(27, 15, 92)
HSLhsl(249, 72%, 21%)
HSVhsv(249, 84%, 36%)
CMYKcmyk(70.7%, 83.7%, 0%, 63.9%)
CIE-LABlab(11.60, 30.79, -43.39)
CIE-LCHlch(11.60, 53.20, 305.36°)
OKLaboklab(25.16% 0.0203 -0.1253)
OKLCHoklch(25.16% 0.127 279.2)
XYZxyz(2.5540, 1.3472, 10.2486)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F5C #505C0F
analogous
#0F295C #1B0F5C #410F5C
triadic
#1B0F5C #5C1B0F #0F5C1B
tetradic
#1B0F5C #5C0F29 #505C0F #0F5C41
square
#1B0F5C #5C0F29 #505C0F #0F5C41
split-complementary
#1B0F5C #5C410F #295C0F
monochromatic
#08041A #0C0627 #1B0F5C #2A1891 #3A20C5

Accessibility & contrast

On white

16.54
#1B0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1B0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F5C
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F5C#FFFFFF#000000##FFFFFF
##1B0F5C1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b0f5c;
/* rgb */ color: rgb(27, 15, 92);
/* oklch */ color: oklch(25.2% 0.127 279.2);
Tailwind
colors: {
  custom: {
    50: '#62508b',
    500: '#1b0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f5c;
$custom-light: #62508b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f5c",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 249.351,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25161,
    "c": 0.12692,
    "h": 279.2
  },
  "luminance": 0.01347
}

Semantic roles & 50–950 ramp

primary
#1B0F5C
secondary
#869531
accent
#EF39D2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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