#1B2180#1B2180

#1B2180 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.156 H 271.0°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#1B2180
RGBrgb(27, 33, 128)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 50%)
CMYKcmyk(78.9%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.55, 32.73, -53.73)
CIE-LCHlch(19.55, 62.92, 301.35°)
OKLaboklab(32.01% 0.0026 -0.1556)
OKLCHoklch(32.01% 0.156 271)
XYZxyz(4.8908, 2.8787, 20.7158)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2180 #807A1B
analogous
#1B5380 #1B2180 #481B80
triadic
#1B2180 #801B21 #21801B
tetradic
#1B2180 #801B53 #807A1B #1B8048
square
#1B2180 #801B53 #807A1B #1B8048
split-complementary
#1B2180 #80481B #53801B
monochromatic
#06071B #10144D #1B2180 #262EB3 #3F48D6

Accessibility & contrast

On white

13.33
#1B2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2180
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2180#FFFFFF#000000##FFFFFF
##1B21801.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b2180;
/* rgb */ color: rgb(27, 33, 128);
/* oklch */ color: oklch(32.0% 0.156 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a5da6',
    500: '#1b2180',
    950: '#000000',
  },
}
SCSS
$custom: #1b2180;
$custom-light: #6a5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2180",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 236.436,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3201,
    "c": 0.15559,
    "h": 271
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#1B2180
secondary
#B4AD43
accent
#DE40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1B2180

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

Preview Lab → · Contrast checker → · Palette generator →

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