#1B2097#1B2097

#1B2097 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.186 H 269.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1B2097
RGBrgb(27, 32, 151)
HSLhsl(238, 70%, 35%)
HSVhsv(238, 82%, 59%)
CMYKcmyk(82.1%, 78.8%, 0%, 40.8%)
CIE-LABlab(21.94, 41.47, -64.15)
CIE-LCHlch(21.94, 76.38, 302.88°)
OKLaboklab(34.48% -0.0008 -0.1858)
OKLCHoklch(34.48% 0.186 269.7)
XYZxyz(6.5525, 3.4996, 29.6023)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2097 #97921B
analogous
#1B5E97 #1B2097 #541B97
triadic
#1B2097 #971B20 #20971B
tetradic
#1B2097 #971B5E #97921B #1B9754
square
#1B2097 #971B5E #97921B #1B9754
split-complementary
#1B2097 #97541B #5E971B
monochromatic
#080A2F #121563 #1B2097 #242BCB #4D53DF

Accessibility & contrast

On white

12.35
#1B2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2097
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2097#FFFFFF#000000##FFFFFF
##1B20971.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2097;
/* rgb */ color: rgb(27, 32, 151);
/* oklch */ color: oklch(34.5% 0.186 269.7);
Tailwind
colors: {
  custom: {
    50: '#705db7',
    500: '#1b2097',
    950: '#000000',
  },
}
SCSS
$custom: #1b2097;
$custom-light: #705db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2097",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 237.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.1858,
    "h": 269.7
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#1B2097
secondary
#C1BD4C
accent
#E53BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B2097

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

Preview Lab → · Contrast checker → · Palette generator →

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