#1B158E#1B158E

#1B158E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.184 H 271.2°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1B158E
RGBrgb(27, 21, 142)
HSLhsl(243, 74%, 32%)
HSVhsv(243, 85%, 56%)
CMYKcmyk(81%, 85.2%, 0%, 44.3%)
CIE-LABlab(18.89, 44.17, -63.63)
CIE-LCHlch(18.89, 77.46, 304.77°)
OKLaboklab(32.03% 0.0039 -0.1841)
OKLCHoklch(32.03% 0.184 271.2)
XYZxyz(5.6010, 2.7217, 25.8161)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B158E #888E15
analogous
#154C8E #1B158E #58158E
triadic
#1B158E #8E1B15 #158E1B
tetradic
#1B158E #8E154C #888E15 #158E58
square
#1B158E #8E154C #888E15 #158E58
split-complementary
#1B158E #8E5815 #4C8E15
monochromatic
#070523 #110D59 #1B158E #251DC3 #443BE2

Accessibility & contrast

On white

13.60
#1B158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B158E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B158E#FFFFFF#000000##FFFFFF
##1B158E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b158e;
/* rgb */ color: rgb(27, 21, 142);
/* oklch */ color: oklch(32.0% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f57b0',
    500: '#1b158e',
    950: '#000000',
  },
}
SCSS
$custom: #1b158e;
$custom-light: #6f57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b158e",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 242.975,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.18415,
    "h": 271.2
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#1B158E
secondary
#BBC23D
accent
#F137E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B158E

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

Preview Lab → · Contrast checker → · Palette generator →

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