#1B158F#1B158F

#1B158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.185 H 271.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#1B158F
RGBrgb(27, 21, 143)
HSLhsl(243, 74%, 32%)
HSVhsv(243, 85%, 56%)
CMYKcmyk(81.1%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.02, 44.49, -64.04)
CIE-LCHlch(19.02, 77.97, 304.79°)
OKLaboklab(32.16% 0.0037 -0.1853)
OKLCHoklch(32.16% 0.185 271.1)
XYZxyz(5.6764, 2.7519, 26.2133)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B158F #898F15
analogous
#154C8F #1B158F #58158F
triadic
#1B158F #8F1B15 #158F1B
tetradic
#1B158F #8F154C #898F15 #158F58
square
#1B158F #8F154C #898F15 #158F58
split-complementary
#1B158F #8F5815 #4C8F15
monochromatic
#070524 #110D5A #1B158F #251DC4 #443CE2

Accessibility & contrast

On white

13.54
#1B158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B158F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B158F#FFFFFF#000000##FFFFFF
##1B158F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b158f;
/* rgb */ color: rgb(27, 21, 143);
/* oklch */ color: oklch(32.2% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f57b1',
    500: '#1b158f',
    950: '#000000',
  },
}
SCSS
$custom: #1b158f;
$custom-light: #6f57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b158f",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 242.951,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32156,
    "c": 0.18534,
    "h": 271.1
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B158F

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

Preview Lab → · Contrast checker → · Palette generator →

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