#1B2A97#1B2A97

#1B2A97 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.176 H 268.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#1B2A97
RGBrgb(27, 42, 151)
HSLhsl(233, 70%, 35%)
HSVhsv(233, 82%, 59%)
CMYKcmyk(82.1%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.07, 35.49, -60.63)
CIE-LCHlch(24.07, 70.25, 300.35°)
OKLaboklab(35.99% -0.0044 -0.1756)
OKLCHoklch(35.99% 0.176 268.6)
XYZxyz(6.8639, 4.1225, 29.7061)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A97 #97881B
analogous
#1B6897 #1B2A97 #4A1B97
triadic
#1B2A97 #971B2A #2A971B
tetradic
#1B2A97 #971B68 #97881B #1B974A
square
#1B2A97 #971B68 #97881B #1B974A
split-complementary
#1B2A97 #974A1B #68971B
monochromatic
#080D2F #121C63 #1B2A97 #2438CB #4D5FDF

Accessibility & contrast

On white

11.51
#1B2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1B2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A97
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A97#FFFFFF#000000##FFFFFF
##1B2A971.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b2a97;
/* rgb */ color: rgb(27, 42, 151);
/* oklch */ color: oklch(36.0% 0.176 268.6);
Tailwind
colors: {
  custom: {
    50: '#6f64b7',
    500: '#1b2a97',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a97;
$custom-light: #6f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a97",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 232.742,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.1757,
    "h": 268.6
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#1B2A97
secondary
#C1B34C
accent
#D73BEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1B2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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