#1B1796#1B1796

#1B1796 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.2% C 0.192 H 270.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1B1796
RGBrgb(27, 23, 150)
HSLhsl(242, 73%, 34%)
HSVhsv(242, 85%, 59%)
CMYKcmyk(82%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.23, 45.77, -66.37)
CIE-LCHlch(20.23, 80.62, 304.59°)
OKLaboklab(33.25% 0.0016 -0.1921)
OKLCHoklch(33.25% 0.192 270.5)
XYZxyz(6.2615, 3.0471, 29.1064)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1796 #929617
analogous
#175396 #1B1796 #5B1796
triadic
#1B1796 #961B17 #17961B
tetradic
#1B1796 #961753 #929617 #17965B
square
#1B1796 #961753 #929617 #17965B
split-complementary
#1B1796 #965B17 #539617
monochromatic
#08072C #110F61 #1B1796 #251FCB #4A45E2

Accessibility & contrast

On white

13.05
#1B1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1796
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1796#FFFFFF#000000##FFFFFF
##1B17961.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002A94
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b1796;
/* rgb */ color: rgb(27, 23, 150);
/* oklch */ color: oklch(33.2% 0.192 270.5);
Tailwind
colors: {
  custom: {
    50: '#7158b6',
    500: '#1b1796',
    950: '#000000',
  },
}
SCSS
$custom: #1b1796;
$custom-light: #7158b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1796",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 241.89,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.19209,
    "h": 270.5
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#1B1796
secondary
#BFC345
accent
#F038EA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1796

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

Preview Lab → · Contrast checker → · Palette generator →

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