#1B2882#1B2882

#1B2882 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.150 H 269.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1B2882
RGBrgb(27, 40, 130)
HSLhsl(232, 66%, 31%)
HSVhsv(232, 79%, 51%)
CMYKcmyk(79.2%, 69.2%, 0%, 49%)
CIE-LABlab(21.44, 28.91, -51.89)
CIE-LCHlch(21.44, 59.40, 299.12°)
OKLaboklab(33.44% -0.0013 -0.1502)
OKLCHoklch(33.44% 0.15 269.5)
XYZxyz(5.2387, 3.3617, 21.4875)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2882 #82751B
analogous
#1B5B82 #1B2882 #411B82
triadic
#1B2882 #821B28 #28821B
tetradic
#1B2882 #821B5B #82751B #1B8241
square
#1B2882 #821B5B #82751B #1B8241
split-complementary
#1B2882 #82411B #5B821B
monochromatic
#06091D #10184F #1B2882 #2638B5 #4053D7

Accessibility & contrast

On white

12.56
#1B2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2882
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2882#FFFFFF#000000##FFFFFF
##1B28821.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2882;
/* rgb */ color: rgb(27, 40, 130);
/* oklch */ color: oklch(33.4% 0.150 269.5);
Tailwind
colors: {
  custom: {
    50: '#6a62a7',
    500: '#1b2882',
    950: '#000000',
  },
}
SCSS
$custom: #1b2882;
$custom-light: #6a62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2882",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 232.427,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33436,
    "c": 0.1502,
    "h": 269.5
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#1B2882
secondary
#B6A743
accent
#D33FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2882

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

Preview Lab → · Contrast checker → · Palette generator →

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