#1B2D8D#1B2D8D

#1B2D8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.159 H 268.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#1B2D8D
RGBrgb(27, 45, 141)
HSLhsl(231, 68%, 33%)
HSVhsv(231, 81%, 55%)
CMYKcmyk(80.9%, 68.1%, 0%, 44.7%)
CIE-LABlab(23.78, 29.78, -54.93)
CIE-LCHlch(23.78, 62.48, 298.46°)
OKLaboklab(35.47% -0.0049 -0.159)
OKLCHoklch(35.47% 0.159 268.2)
XYZxyz(6.1964, 4.0322, 25.6458)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D8D #8D7B1B
analogous
#1B668D #1B2D8D #421B8D
triadic
#1B2D8D #8D1B2D #2D8D1B
tetradic
#1B2D8D #8D1B66 #8D7B1B #1B8D42
square
#1B2D8D #8D1B66 #8D7B1B #1B8D42
split-complementary
#1B2D8D #8D421B #668D1B
monochromatic
#070C26 #111D5A #1B2D8D #253DC0 #475EDC

Accessibility & contrast

On white

11.62
#1B2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1B2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D8D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D8D#FFFFFF#000000##FFFFFF
##1B2D8D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1b2d8d;
/* rgb */ color: rgb(27, 45, 141);
/* oklch */ color: oklch(35.5% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#6c66af',
    500: '#1b2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d8d;
$custom-light: #6c66af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d8d",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 230.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35473,
    "c": 0.15912,
    "h": 268.2
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#1B2D8D
secondary
#BDAB46
accent
#CF3DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1B2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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