#1B0F5F#1B0F5F

#1B0F5F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.131 H 278.5°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#1B0F5F
RGBrgb(27, 15, 95)
HSLhsl(249, 73%, 22%)
HSVhsv(249, 84%, 37%)
CMYKcmyk(71.6%, 84.2%, 0%, 62.7%)
CIE-LABlab(11.96, 31.80, -44.80)
CIE-LCHlch(11.96, 54.94, 305.37°)
OKLaboklab(25.52% 0.0194 -0.1294)
OKLCHoklch(25.52% 0.131 278.5)
XYZxyz(2.6877, 1.4007, 10.9530)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F5F #535F0F
analogous
#0F2B5F #1B0F5F #430F5F
triadic
#1B0F5F #5F1B0F #0F5F1B
tetradic
#1B0F5F #5F0F2B #535F0F #0F5F43
square
#1B0F5F #5F0F2B #535F0F #0F5F43
split-complementary
#1B0F5F #5F430F #2B5F0F
monochromatic
#08041A #0C072A #1B0F5F #2A1794 #3920C9

Accessibility & contrast

On white

16.40
#1B0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1B0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F5F
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F5F#FFFFFF#000000##FFFFFF
##1B0F5F1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002261
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b0f5f;
/* rgb */ color: rgb(27, 15, 95);
/* oklch */ color: oklch(25.5% 0.131 278.5);
Tailwind
colors: {
  custom: {
    50: '#63508d',
    500: '#1b0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f5f;
$custom-light: #63508d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f5f",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 249,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25519,
    "c": 0.13086,
    "h": 278.5
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#1B0F5F
secondary
#899832
accent
#EF38D4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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