#1B2182#1B2182

#1B2182 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.158 H 270.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#1B2182
RGBrgb(27, 33, 130)
HSLhsl(237, 66%, 31%)
HSVhsv(237, 79%, 51%)
CMYKcmyk(79.2%, 74.6%, 0%, 49%)
CIE-LABlab(19.77, 33.47, -54.64)
CIE-LCHlch(19.77, 64.07, 301.49°)
OKLaboklab(32.23% 0.0023 -0.1582)
OKLCHoklch(32.23% 0.158 270.8)
XYZxyz(5.0237, 2.9319, 21.4159)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2182 #827C1B
analogous
#1B5482 #1B2182 #481B82
triadic
#1B2182 #821B21 #21821B
tetradic
#1B2182 #821B54 #827C1B #1B8248
square
#1B2182 #821B54 #827C1B #1B8248
split-complementary
#1B2182 #82481B #54821B
monochromatic
#06071D #10144F #1B2182 #262EB5 #4049D7

Accessibility & contrast

On white

13.24
#1B2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2182
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2182#FFFFFF#000000##FFFFFF
##1B21821.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2182;
/* rgb */ color: rgb(27, 33, 130);
/* oklch */ color: oklch(32.2% 0.158 270.8);
Tailwind
colors: {
  custom: {
    50: '#6b5da7',
    500: '#1b2182',
    950: '#000000',
  },
}
SCSS
$custom: #1b2182;
$custom-light: #6b5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2182",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 236.505,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32231,
    "c": 0.15823,
    "h": 270.8
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#1B2182
secondary
#B6AF43
accent
#DF3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1B2182

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

Preview Lab → · Contrast checker → · Palette generator →

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