#1B2287#1B2287

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

Color values

HEX#1B2287
RGBrgb(27, 34, 135)
HSLhsl(236, 67%, 32%)
HSVhsv(236, 80%, 53%)
CMYKcmyk(80%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.54, 34.66, -56.52)
CIE-LCHlch(20.54, 66.30, 301.52°)
OKLaboklab(32.95% 0.0011 -0.1637)
OKLCHoklch(32.95% 0.164 270.4)
XYZxyz(5.3957, 3.1257, 23.2359)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2287 #87801B
analogous
#1B5887 #1B2287 #4A1B87
triadic
#1B2287 #871B22 #22871B
tetradic
#1B2287 #871B58 #87801B #1B874A
square
#1B2287 #871B58 #87801B #1B874A
split-complementary
#1B2287 #874A1B #58871B
monochromatic
#070821 #111554 #1B2287 #252FBA #434DD9

Accessibility & contrast

On white

12.92
#1B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2287
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2287#FFFFFF#000000##FFFFFF
##1B22871.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2287;
/* rgb */ color: rgb(27, 34, 135);
/* oklch */ color: oklch(32.9% 0.164 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c5eab',
    500: '#1b2287',
    950: '#000000',
  },
}
SCSS
$custom: #1b2287;
$custom-light: #6c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2287",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 236.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.16367,
    "h": 270.4
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#1B2287
secondary
#BAB244
accent
#DE3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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