#1B2782#1B2782

#1B2782 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.151 H 269.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1B2782
RGBrgb(27, 39, 130)
HSLhsl(233, 66%, 31%)
HSVhsv(233, 79%, 51%)
CMYKcmyk(79.2%, 70%, 0%, 49%)
CIE-LABlab(21.19, 29.58, -52.30)
CIE-LCHlch(21.19, 60.09, 299.49°)
OKLaboklab(33.26% -0.0008 -0.1514)
OKLCHoklch(33.26% 0.151 269.7)
XYZxyz(5.2054, 3.2952, 21.4765)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2782 #82761B
analogous
#1B5A82 #1B2782 #421B82
triadic
#1B2782 #821B27 #27821B
tetradic
#1B2782 #821B5A #82761B #1B8242
square
#1B2782 #821B5A #82761B #1B8242
split-complementary
#1B2782 #82421B #5A821B
monochromatic
#06091D #10184F #1B2782 #2636B5 #4052D7

Accessibility & contrast

On white

12.66
#1B2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2782
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2782#FFFFFF#000000##FFFFFF
##1B27821.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2782;
/* rgb */ color: rgb(27, 39, 130);
/* oklch */ color: oklch(33.3% 0.151 269.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a7',
    500: '#1b2782',
    950: '#000000',
  },
}
SCSS
$custom: #1b2782;
$custom-light: #6a61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2782",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 233.01,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33255,
    "c": 0.15139,
    "h": 269.7
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#1B2782
secondary
#B6A843
accent
#D53FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2782

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

Preview Lab → · Contrast checker → · Palette generator →

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