#1D278F#1D278F

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

Color values

HEX#1D278F
RGBrgb(29, 39, 143)
HSLhsl(235, 66%, 34%)
HSVhsv(235, 80%, 56%)
CMYKcmyk(79.7%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.64, 34.62, -58.05)
CIE-LCHlch(22.64, 67.59, 300.81°)
OKLaboklab(34.73% -0.0001 -0.1681)
OKLCHoklch(34.73% 0.168 269.9)
XYZxyz(6.1884, 3.6947, 26.3683)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D278F #8F851D
analogous
#1D608F #1D278F #4C1D8F
triadic
#1D278F #8F1D27 #278F1D
tetradic
#1D278F #8F1D60 #8F851D #1D8F4C
square
#1D278F #8F1D60 #8F851D #1D8F4C
split-complementary
#1D278F #8F4C1D #608F1D
monochromatic
#080B29 #13195C #1D278F #2735C2 #4C58DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D278F#FFFFFF#000000##FFFFFF
##1D278F1.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)
#003C92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d278f;
/* rgb */ color: rgb(29, 39, 143);
/* oklch */ color: oklch(34.7% 0.168 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e62b1',
    500: '#1d278f',
    950: '#000000',
  },
}
SCSS
$custom: #1d278f;
$custom-light: #6e62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d278f",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 234.737,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.16811,
    "h": 269.9
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#1D278F
secondary
#BDB34B
accent
#DA3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D278F

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

Preview Lab → · Contrast checker → · Palette generator →

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