#1D278B#1D278B

#1D278B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.163 H 270.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1D278B
RGBrgb(29, 39, 139)
HSLhsl(235, 65%, 33%)
HSVhsv(235, 79%, 55%)
CMYKcmyk(79.1%, 71.9%, 0%, 45.5%)
CIE-LABlab(22.22, 33.15, -56.25)
CIE-LCHlch(22.22, 65.29, 300.51°)
OKLaboklab(34.31% 0.0003 -0.1629)
OKLCHoklch(34.31% 0.163 270.1)
XYZxyz(5.8908, 3.5757, 24.8008)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D278B #8B811D
analogous
#1D5E8B #1D278B #4A1D8B
triadic
#1D278B #8B1D27 #278B1D
tetradic
#1D278B #8B1D5E #8B811D #1D8B4A
square
#1D278B #8B1D5E #8B811D #1D8B4A
split-complementary
#1D278B #8B4A1D #5E8B1D
monochromatic
#080B26 #121958 #1D278B #2835BE #4956D9

Accessibility & contrast

On white

12.24
#1D278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D278B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D278B#FFFFFF#000000##FFFFFF
##1D278B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d278b;
/* rgb */ color: rgb(29, 39, 139);
/* oklch */ color: oklch(34.3% 0.163 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d61ae',
    500: '#1d278b',
    950: '#000000',
  },
}
SCSS
$custom: #1d278b;
$custom-light: #6d61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d278b",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 234.545,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34305,
    "c": 0.16287,
    "h": 270.1
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#1D278B
secondary
#BBB149
accent
#D93FE8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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