#1B2371#1B2371

#1B2371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.133 H 271.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1B2371
RGBrgb(27, 35, 113)
HSLhsl(234, 61%, 27%)
HSVhsv(234, 76%, 44%)
CMYKcmyk(76.1%, 69%, 0%, 55.7%)
CIE-LABlab(18.48, 25.76, -45.90)
CIE-LCHlch(18.48, 52.63, 299.30°)
OKLaboklab(30.77% 0.0032 -0.1327)
OKLCHoklch(30.77% 0.133 271.4)
XYZxyz(4.0327, 2.6269, 15.9141)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2371 #71691B
analogous
#1B4E71 #1B2371 #3E1B71
triadic
#1B2371 #711B23 #23711B
tetradic
#1B2371 #711B4E #71691B #1B713E
square
#1B2371 #711B4E #71691B #1B713E
split-complementary
#1B2371 #713E1B #4E711B
monochromatic
#060819 #0F1440 #1B2371 #2732A2 #3745CF

Accessibility & contrast

On white

13.77
#1B2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2371
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2371#FFFFFF#000000##FFFFFF
##1B23711.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2371;
/* rgb */ color: rgb(27, 35, 113);
/* oklch */ color: oklch(30.8% 0.133 271.4);
Tailwind
colors: {
  custom: {
    50: '#665e9b',
    500: '#1b2371',
    950: '#000000',
  },
}
SCSS
$custom: #1b2371;
$custom-light: #665e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2371",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 234.419,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.13273,
    "h": 271.4
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#1B2371
secondary
#A69C42
accent
#D643E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2371

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

Preview Lab → · Contrast checker → · Palette generator →

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