#1B2571#1B2571

#1B2571 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.130 H 270.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#1B2571
RGBrgb(27, 37, 113)
HSLhsl(233, 61%, 27%)
HSVhsv(233, 76%, 44%)
CMYKcmyk(76.1%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.00, 24.37, -45.04)
CIE-LCHlch(19.00, 51.21, 298.42°)
OKLaboklab(31.15% 0.0018 -0.1302)
OKLCHoklch(31.15% 0.13 270.8)
XYZxyz(4.0932, 2.7480, 15.9343)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2571 #71671B
analogous
#1B5071 #1B2571 #3C1B71
triadic
#1B2571 #711B25 #25711B
tetradic
#1B2571 #711B50 #71671B #1B713C
square
#1B2571 #711B50 #71671B #1B713C
split-complementary
#1B2571 #713C1B #50711B
monochromatic
#060819 #0F1540 #1B2571 #2735A2 #3749CF

Accessibility & contrast

On white

13.55
#1B2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2571
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2571#FFFFFF#000000##FFFFFF
##1B25711.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2571;
/* rgb */ color: rgb(27, 37, 113);
/* oklch */ color: oklch(31.1% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#665f9b',
    500: '#1b2571',
    950: '#000000',
  },
}
SCSS
$custom: #1b2571;
$custom-light: #665f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2571",
  "rgb": {
    "r": 27,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 233.023,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3115,
    "c": 0.13018,
    "h": 270.8
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#1B2571
secondary
#A69A42
accent
#D243E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B2571

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

Preview Lab → · Contrast checker → · Palette generator →

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