#1B0F8D#1B0F8D

#1B0F8D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.3% C 0.187 H 271.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#1B0F8D
RGBrgb(27, 15, 141)
HSLhsl(246, 81%, 31%)
HSVhsv(246, 89%, 55%)
CMYKcmyk(80.9%, 89.4%, 0%, 44.7%)
CIE-LABlab(17.91, 46.41, -64.64)
CIE-LCHlch(17.91, 79.58, 305.68°)
OKLaboklab(31.32% 0.0053 -0.1869)
OKLCHoklch(31.32% 0.187 271.6)
XYZxyz(5.4289, 2.4971, 25.3900)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B0F8D #818D0F
analogous
#0F428D #1B0F8D #5A0F8D
triadic
#1B0F8D #8D1B0F #0F8D1B
tetradic
#1B0F8D #8D0F42 #818D0F #0F8D5A
square
#1B0F8D #8D0F42 #818D0F #0F8D5A
split-complementary
#1B0F8D #8D5A0F #428D0F
monochromatic
#06031E #100956 #1B0F8D #2615C4 #3F2EE9

Accessibility & contrast

On white

14.00
#1B0F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B0F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B0F8D
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B0F8D#FFFFFF#000000##FFFFFF
##1B0F8D1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00258B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b0f8d;
/* rgb */ color: rgb(27, 15, 141);
/* oklch */ color: oklch(31.3% 0.187 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f54b0',
    500: '#1b0f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b0f8d;
$custom-light: #6f54b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b0f8d",
  "rgb": {
    "r": 27,
    "g": 15,
    "b": 141
  },
  "hsl": {
    "h": 245.714,
    "s": 80.769,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31316,
    "c": 0.187,
    "h": 271.6
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#1B0F8D
secondary
#B5C236
accent
#F731E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B0F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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