#1D278C#1D278C

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

Color values

HEX#1D278C
RGBrgb(29, 39, 140)
HSLhsl(235, 66%, 33%)
HSVhsv(235, 79%, 55%)
CMYKcmyk(79.3%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.32, 33.52, -56.70)
CIE-LCHlch(22.32, 65.87, 300.59°)
OKLaboklab(34.41% 0.0002 -0.1642)
OKLCHoklch(34.41% 0.164 270.1)
XYZxyz(5.9642, 3.6050, 25.1874)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D278C #8C821D
analogous
#1D5E8C #1D278C #4B1D8C
triadic
#1D278C #8C1D27 #278C1D
tetradic
#1D278C #8C1D5E #8C821D #1D8C4B
square
#1D278C #8C1D5E #8C821D #1D8C4B
split-complementary
#1D278C #8C4B1D #5E8C1D
monochromatic
#080B27 #121959 #1D278C #2835BF #4A57D9

Accessibility & contrast

On white

12.20
#1D278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D278C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D278C#FFFFFF#000000##FFFFFF
##1D278C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d278c;
/* rgb */ color: rgb(29, 39, 140);
/* oklch */ color: oklch(34.4% 0.164 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1d278c',
    950: '#000000',
  },
}
SCSS
$custom: #1d278c;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d278c",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 234.595,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34412,
    "c": 0.16419,
    "h": 270.1
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#1D278C
secondary
#BCB149
accent
#D93FE9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D278C

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

Preview Lab → · Contrast checker → · Palette generator →

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