#1B2197#1B2197

#1B2197 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.185 H 269.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1B2197
RGBrgb(27, 33, 151)
HSLhsl(237, 70%, 35%)
HSVhsv(237, 82%, 59%)
CMYKcmyk(82.1%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.14, 40.91, -63.82)
CIE-LCHlch(22.14, 75.81, 302.66°)
OKLaboklab(34.62% -0.0011 -0.1849)
OKLCHoklch(34.62% 0.185 269.6)
XYZxyz(6.5799, 3.5543, 29.6114)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2197 #97911B
analogous
#1B5F97 #1B2197 #531B97
triadic
#1B2197 #971B21 #21971B
tetradic
#1B2197 #971B5F #97911B #1B9753
square
#1B2197 #971B5F #97911B #1B9753
split-complementary
#1B2197 #97531B #5F971B
monochromatic
#080A2F #121663 #1B2197 #242CCB #4D54DF

Accessibility & contrast

On white

12.27
#1B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2197
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2197#FFFFFF#000000##FFFFFF
##1B21971.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2197;
/* rgb */ color: rgb(27, 33, 151);
/* oklch */ color: oklch(34.6% 0.185 269.6);
Tailwind
colors: {
  custom: {
    50: '#705eb7',
    500: '#1b2197',
    950: '#000000',
  },
}
SCSS
$custom: #1b2197;
$custom-light: #705eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2197",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 237.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.18487,
    "h": 269.6
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#1B2197
secondary
#C1BC4C
accent
#E43BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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