#1B2797#1B2797

#1B2797 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.179 H 269.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#1B2797
RGBrgb(27, 39, 151)
HSLhsl(234, 70%, 35%)
HSVhsv(234, 82%, 59%)
CMYKcmyk(82.1%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.40, 37.36, -61.74)
CIE-LCHlch(23.40, 72.16, 301.18°)
OKLaboklab(35.51% -0.0032 -0.1789)
OKLCHoklch(35.51% 0.179 269)
XYZxyz(6.7615, 3.9176, 29.6720)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2797 #978B1B
analogous
#1B6597 #1B2797 #4D1B97
triadic
#1B2797 #971B27 #27971B
tetradic
#1B2797 #971B65 #978B1B #1B974D
square
#1B2797 #971B65 #978B1B #1B974D
split-complementary
#1B2797 #974D1B #65971B
monochromatic
#080C2F #121A63 #1B2797 #2434CB #4D5BDF

Accessibility & contrast

On white

11.77
#1B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2797
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2797#FFFFFF#000000##FFFFFF
##1B27971.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2797;
/* rgb */ color: rgb(27, 39, 151);
/* oklch */ color: oklch(35.5% 0.179 269.0);
Tailwind
colors: {
  custom: {
    50: '#7062b7',
    500: '#1b2797',
    950: '#000000',
  },
}
SCSS
$custom: #1b2797;
$custom-light: #7062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2797",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 234.194,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.17891,
    "h": 269
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#1B2797
secondary
#C1B64C
accent
#DB3BEC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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