#1B2397#1B2397

#1B2397 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.183 H 269.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1B2397
RGBrgb(27, 35, 151)
HSLhsl(236, 70%, 35%)
HSVhsv(236, 82%, 59%)
CMYKcmyk(82.1%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.54, 39.76, -63.15)
CIE-LCHlch(22.54, 74.62, 302.19°)
OKLaboklab(34.9% -0.0018 -0.1829)
OKLCHoklch(34.9% 0.183 269.4)
XYZxyz(6.6370, 3.6687, 29.6305)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2397 #978F1B
analogous
#1B6197 #1B2397 #511B97
triadic
#1B2397 #971B23 #23971B
tetradic
#1B2397 #971B61 #978F1B #1B9751
square
#1B2397 #971B61 #978F1B #1B9751
split-complementary
#1B2397 #97511B #61971B
monochromatic
#080B2F #121763 #1B2397 #242FCB #4D57DF

Accessibility & contrast

On white

12.11
#1B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2397
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2397#FFFFFF#000000##FFFFFF
##1B23971.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2397;
/* rgb */ color: rgb(27, 35, 151);
/* oklch */ color: oklch(34.9% 0.183 269.4);
Tailwind
colors: {
  custom: {
    50: '#705fb7',
    500: '#1b2397',
    950: '#000000',
  },
}
SCSS
$custom: #1b2397;
$custom-light: #705fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2397",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 236.129,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.18296,
    "h": 269.4
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#1B2397
secondary
#C1BA4C
accent
#E13BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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