#1B2871#1B2871

#1B2871 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.126 H 269.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1B2871
RGBrgb(27, 40, 113)
HSLhsl(231, 61%, 27%)
HSVhsv(231, 76%, 44%)
CMYKcmyk(76.1%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.81, 22.27, -43.72)
CIE-LCHlch(19.81, 49.07, 297.00°)
OKLaboklab(31.74% -0.0004 -0.1263)
OKLCHoklch(31.74% 0.126 269.8)
XYZxyz(4.1904, 2.9424, 15.9667)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2871 #71641B
analogous
#1B5371 #1B2871 #391B71
triadic
#1B2871 #711B28 #28711B
tetradic
#1B2871 #711B53 #71641B #1B7139
square
#1B2871 #711B53 #71641B #1B7139
split-complementary
#1B2871 #71391B #53711B
monochromatic
#060919 #0F1740 #1B2871 #2739A2 #374ECF

Accessibility & contrast

On white

13.22
#1B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2871
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2871#FFFFFF#000000##FFFFFF
##1B28711.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2871;
/* rgb */ color: rgb(27, 40, 113);
/* oklch */ color: oklch(31.7% 0.126 269.8);
Tailwind
colors: {
  custom: {
    50: '#65619b',
    500: '#1b2871',
    950: '#000000',
  },
}
SCSS
$custom: #1b2871;
$custom-light: #65619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2871",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 230.93,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31744,
    "c": 0.12627,
    "h": 269.8
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#1B2871
secondary
#A69742
accent
#CC43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2871

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

Preview Lab → · Contrast checker → · Palette generator →

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