#1B2181#1B2181

#1B2181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.157 H 270.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#1B2181
RGBrgb(27, 33, 129)
HSLhsl(236, 65%, 31%)
HSVhsv(236, 79%, 51%)
CMYKcmyk(79.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.66, 33.10, -54.19)
CIE-LCHlch(19.66, 63.50, 301.42°)
OKLaboklab(32.12% 0.0025 -0.1569)
OKLCHoklch(32.12% 0.157 270.9)
XYZxyz(4.9570, 2.9052, 21.0641)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2181 #817B1B
analogous
#1B5481 #1B2181 #481B81
triadic
#1B2181 #811B21 #21811B
tetradic
#1B2181 #811B54 #817B1B #1B8148
square
#1B2181 #811B54 #817B1B #1B8148
split-complementary
#1B2181 #81481B #54811B
monochromatic
#06071C #10144E #1B2181 #262EB4 #3F48D7

Accessibility & contrast

On white

13.28
#1B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2181
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2181#FFFFFF#000000##FFFFFF
##1B21811.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2181;
/* rgb */ color: rgb(27, 33, 129);
/* oklch */ color: oklch(32.1% 0.157 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a5da7',
    500: '#1b2181',
    950: '#000000',
  },
}
SCSS
$custom: #1b2181;
$custom-light: #6a5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2181",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 236.471,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3212,
    "c": 0.15691,
    "h": 270.9
  },
  "luminance": 0.02906
}

Semantic roles & 50–950 ramp

primary
#1B2181
secondary
#B5AE43
accent
#DE3FE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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