#1B319E#1B319E

#1B319E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.177 H 267.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#1B319E
RGBrgb(27, 49, 158)
HSLhsl(230, 71%, 36%)
HSVhsv(230, 83%, 62%)
CMYKcmyk(82.9%, 69%, 0%, 38%)
CIE-LABlab(26.44, 33.60, -61.01)
CIE-LCHlch(26.44, 69.65, 298.85°)
OKLaboklab(37.92% -0.0081 -0.1767)
OKLCHoklch(37.92% 0.177 267.4)
XYZxyz(7.7197, 4.8973, 32.8795)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B319E #9E881B
analogous
#1B739E #1B319E #471B9E
triadic
#1B319E #9E1B31 #319E1B
tetradic
#1B319E #9E1B73 #9E881B #1B9E47
square
#1B319E #9E1B73 #9E881B #1B9E47
split-complementary
#1B319E #9E471B #739E1B
monochromatic
#091135 #12216A #1B319E #2441D2 #526AE1

Accessibility & contrast

On white

10.61
#1B319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1B319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B319E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B319E#FFFFFF#000000##FFFFFF
##1B319E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b319e;
/* rgb */ color: rgb(27, 49, 158);
/* oklch */ color: oklch(37.9% 0.177 267.4);
Tailwind
colors: {
  custom: {
    50: '#7169bc',
    500: '#1b319e',
    950: '#000000',
  },
}
SCSS
$custom: #1b319e;
$custom-light: #7169bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b319e",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 229.924,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37924,
    "c": 0.17693,
    "h": 267.4
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#1B319E
secondary
#C4B151
accent
#CF3AEE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1B319E

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

Preview Lab → · Contrast checker → · Palette generator →

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