#1B2282#1B2282

#1B2282 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.157 H 270.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#1B2282
RGBrgb(27, 34, 130)
HSLhsl(236, 66%, 31%)
HSVhsv(236, 79%, 51%)
CMYKcmyk(79.2%, 73.8%, 0%, 49%)
CIE-LABlab(20.00, 32.84, -54.27)
CIE-LCHlch(20.00, 63.43, 301.18°)
OKLaboklab(32.39% 0.0018 -0.1571)
OKLCHoklch(32.39% 0.157 270.7)
XYZxyz(5.0519, 2.9882, 21.4253)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2282 #827B1B
analogous
#1B5582 #1B2282 #471B82
triadic
#1B2282 #821B22 #22821B
tetradic
#1B2282 #821B55 #827B1B #1B8247
square
#1B2282 #821B55 #827B1B #1B8247
split-complementary
#1B2282 #82471B #55821B
monochromatic
#06071D #10154F #1B2282 #262FB5 #404AD7

Accessibility & contrast

On white

13.14
#1B2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2282
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2282#FFFFFF#000000##FFFFFF
##1B22821.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.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: #1b2282;
/* rgb */ color: rgb(27, 34, 130);
/* oklch */ color: oklch(32.4% 0.157 270.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ea7',
    500: '#1b2282',
    950: '#000000',
  },
}
SCSS
$custom: #1b2282;
$custom-light: #6a5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2282",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 235.922,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.15713,
    "h": 270.7
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#1B2282
secondary
#B6AE43
accent
#DD3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #1B2282

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

Preview Lab → · Contrast checker → · Palette generator →

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