#1B2C81#1B2C81

#1B2C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.144 H 268.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#1B2C81
RGBrgb(27, 44, 129)
HSLhsl(230, 65%, 31%)
HSVhsv(230, 79%, 51%)
CMYKcmyk(79.1%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.37, 25.80, -49.74)
CIE-LCHlch(22.37, 56.03, 297.42°)
OKLaboklab(34.09% -0.0037 -0.1438)
OKLCHoklch(34.09% 0.144 268.5)
XYZxyz(5.3138, 3.6188, 21.1831)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C81 #81701B
analogous
#1B5F81 #1B2C81 #3D1B81
triadic
#1B2C81 #811B2C #2C811B
tetradic
#1B2C81 #811B5F #81701B #1B813D
square
#1B2C81 #811B5F #81701B #1B813D
split-complementary
#1B2C81 #813D1B #5F811B
monochromatic
#06091C #101B4E #1B2C81 #263DB4 #3F59D7

Accessibility & contrast

On white

12.18
#1B2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2C81
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2C81#FFFFFF#000000##FFFFFF
##1B2C811.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2c81;
/* rgb */ color: rgb(27, 44, 129);
/* oklch */ color: oklch(34.1% 0.144 268.5);
Tailwind
colors: {
  custom: {
    50: '#6965a6',
    500: '#1b2c81',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c81;
$custom-light: #6965a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c81",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 230,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34088,
    "c": 0.1439,
    "h": 268.5
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#1B2C81
secondary
#B5A243
accent
#CC3FE8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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