#1B2286#1B2286

#1B2286 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.162 H 270.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#1B2286
RGBrgb(27, 34, 134)
HSLhsl(236, 66%, 32%)
HSVhsv(236, 80%, 53%)
CMYKcmyk(79.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(20.43, 34.30, -56.07)
CIE-LCHlch(20.43, 65.73, 301.45°)
OKLaboklab(32.84% 0.0013 -0.1624)
OKLCHoklch(32.84% 0.162 270.4)
XYZxyz(5.3256, 3.0977, 22.8669)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2286 #867F1B
analogous
#1B5886 #1B2286 #4A1B86
triadic
#1B2286 #861B22 #22861B
tetradic
#1B2286 #861B58 #867F1B #1B864A
square
#1B2286 #861B58 #867F1B #1B864A
split-complementary
#1B2286 #864A1B #58861B
monochromatic
#060820 #111553 #1B2286 #252FB9 #424CD9

Accessibility & contrast

On white

12.97
#1B2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2286
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2286#FFFFFF#000000##FFFFFF
##1B22861.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2286;
/* rgb */ color: rgb(27, 34, 134);
/* oklch */ color: oklch(32.8% 0.162 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c5eaa',
    500: '#1b2286',
    950: '#000000',
  },
}
SCSS
$custom: #1b2286;
$custom-light: #6c5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2286",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 236.075,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32835,
    "c": 0.16237,
    "h": 270.4
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#1B2286
secondary
#B9B244
accent
#DE3EE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2286

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

Preview Lab → · Contrast checker → · Palette generator →

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