#1B2D81#1B2D81

#1B2D81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.143 H 268.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1B2D81
RGBrgb(27, 45, 129)
HSLhsl(229, 65%, 31%)
HSVhsv(229, 79%, 51%)
CMYKcmyk(79.1%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.63, 25.11, -49.30)
CIE-LCHlch(22.63, 55.33, 296.99°)
OKLaboklab(34.28% -0.0044 -0.1426)
OKLCHoklch(34.28% 0.143 268.2)
XYZxyz(5.3515, 3.6942, 21.1956)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D81 #816F1B
analogous
#1B6081 #1B2D81 #3C1B81
triadic
#1B2D81 #811B2D #2D811B
tetradic
#1B2D81 #811B60 #816F1B #1B813C
square
#1B2D81 #811B60 #816F1B #1B813C
split-complementary
#1B2D81 #813C1B #60811B
monochromatic
#060A1C #101B4E #1B2D81 #263FB4 #3F5AD7

Accessibility & contrast

On white

12.08
#1B2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D81
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D81#FFFFFF#000000##FFFFFF
##1B2D811.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2d81;
/* rgb */ color: rgb(27, 45, 129);
/* oklch */ color: oklch(34.3% 0.143 268.2);
Tailwind
colors: {
  custom: {
    50: '#6965a6',
    500: '#1b2d81',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d81;
$custom-light: #6965a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d81",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 229.412,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.14264,
    "h": 268.2
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#1B2D81
secondary
#B5A143
accent
#CB3FE8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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