#1B156E#1B156E

#1B156E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.145 H 274.8°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#1B156E
RGBrgb(27, 21, 110)
HSLhsl(244, 68%, 26%)
HSVhsv(244, 81%, 43%)
CMYKcmyk(75.5%, 80.9%, 0%, 56.9%)
CIE-LABlab(14.93, 33.58, -49.81)
CIE-LCHlch(14.93, 60.07, 303.99°)
OKLaboklab(28.12% 0.012 -0.144)
OKLCHoklch(28.12% 0.145 274.8)
XYZxyz(3.5337, 1.8948, 14.9283)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B156E #686E15
analogous
#153B6E #1B156E #47156E
triadic
#1B156E #6E1B15 #156E1B
tetradic
#1B156E #6E153B #686E15 #156E47
square
#1B156E #6E153B #686E15 #156E47
split-complementary
#1B156E #6E4715 #3B6E15
monochromatic
#06051A #0E0B3B #1B156E #281FA1 #3429D5

Accessibility & contrast

On white

15.23
#1B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B156E
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B156E#FFFFFF#000000##FFFFFF
##1B156E1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b156e;
/* rgb */ color: rgb(27, 21, 110);
/* oklch */ color: oklch(28.1% 0.145 274.8);
Tailwind
colors: {
  custom: {
    50: '#665499',
    500: '#1b156e',
    950: '#000000',
  },
}
SCSS
$custom: #1b156e;
$custom-light: #665499;
$custom-dark: #000000;
JSON
{
  "hex": "#1b156e",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 244.045,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28121,
    "c": 0.14455,
    "h": 274.8
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#1B156E
secondary
#9DA43A
accent
#EB3DDF
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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