#1B158C#1B158C

#1B158C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.182 H 271.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1B158C
RGBrgb(27, 21, 140)
HSLhsl(243, 74%, 32%)
HSVhsv(243, 85%, 55%)
CMYKcmyk(80.7%, 85%, 0%, 45.1%)
CIE-LABlab(18.64, 43.54, -62.80)
CIE-LCHlch(18.64, 76.42, 304.73°)
OKLaboklab(31.78% 0.0044 -0.1817)
OKLCHoklch(31.78% 0.182 271.4)
XYZxyz(5.4522, 2.6622, 25.0324)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B158C #868C15
analogous
#154B8C #1B158C #57158C
triadic
#1B158C #8C1B15 #158C1B
tetradic
#1B158C #8C154B #868C15 #158C57
square
#1B158C #8C154B #868C15 #158C57
split-complementary
#1B158C #8C5715 #4B8C15
monochromatic
#060522 #110D57 #1B158C #251DC1 #423AE1

Accessibility & contrast

On white

13.70
#1B158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B158C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B158C#FFFFFF#000000##FFFFFF
##1B158C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b158c;
/* rgb */ color: rgb(27, 21, 140);
/* oklch */ color: oklch(31.8% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e57af',
    500: '#1b158c',
    950: '#000000',
  },
}
SCSS
$custom: #1b158c;
$custom-light: #6e57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b158c",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 243.025,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.18178,
    "h": 271.4
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#1B158C
secondary
#B9C03D
accent
#F137E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B158C

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

Preview Lab → · Contrast checker → · Palette generator →

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