#1B2297#1B2297

#1B2297 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.184 H 269.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1B2297
RGBrgb(27, 34, 151)
HSLhsl(237, 70%, 35%)
HSVhsv(237, 82%, 59%)
CMYKcmyk(82.1%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.34, 40.34, -63.49)
CIE-LCHlch(22.34, 75.22, 302.43°)
OKLaboklab(34.76% -0.0015 -0.1839)
OKLCHoklch(34.76% 0.184 269.5)
XYZxyz(6.6080, 3.6107, 29.6208)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2297 #97901B
analogous
#1B6097 #1B2297 #521B97
triadic
#1B2297 #971B22 #22971B
tetradic
#1B2297 #971B60 #97901B #1B9752
square
#1B2297 #971B60 #97901B #1B9752
split-complementary
#1B2297 #97521B #60971B
monochromatic
#080B2F #121663 #1B2297 #242ECB #4D55DF

Accessibility & contrast

On white

12.19
#1B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2297
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2297#FFFFFF#000000##FFFFFF
##1B22971.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2297;
/* rgb */ color: rgb(27, 34, 151);
/* oklch */ color: oklch(34.8% 0.184 269.5);
Tailwind
colors: {
  custom: {
    50: '#705fb7',
    500: '#1b2297',
    950: '#000000',
  },
}
SCSS
$custom: #1b2297;
$custom-light: #705fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2297",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 236.613,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34756,
    "c": 0.18393,
    "h": 269.5
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#1B2297
secondary
#C1BB4C
accent
#E23BEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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