#1D1280#1D1280

#1D1280 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.169 H 273.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1D1280
RGBrgb(29, 18, 128)
HSLhsl(246, 75%, 29%)
HSVhsv(246, 86%, 50%)
CMYKcmyk(77.3%, 85.9%, 0%, 49.8%)
CIE-LABlab(16.76, 41.25, -58.35)
CIE-LCHlch(16.76, 71.46, 305.26°)
OKLaboklab(30.08% 0.0111 -0.1687)
OKLCHoklch(30.08% 0.169 273.8)
XYZxyz(4.6180, 2.2519, 20.6092)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1280 #758012
analogous
#123E80 #1D1280 #541280
triadic
#1D1280 #801D12 #12801D
tetradic
#1D1280 #80123E #758012 #128054
square
#1D1280 #80123E #758012 #128054
split-complementary
#1D1280 #805412 #3E8012
monochromatic
#06041B #110A4A #1D1280 #291AB6 #3D2BE1

Accessibility & contrast

On white

14.48
#1D1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1280
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1280#FFFFFF#000000##FFFFFF
##1D12801.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E83
Deuteranopia (green-blind)
#00247E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d1280;
/* rgb */ color: rgb(29, 18, 128);
/* oklch */ color: oklch(30.1% 0.169 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c54a6',
    500: '#1d1280',
    950: '#000000',
  },
}
SCSS
$custom: #1d1280;
$custom-light: #6c54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1280",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 246,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30079,
    "c": 0.16911,
    "h": 273.8
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#1D1280
secondary
#A9B638
accent
#F236DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1280

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

Preview Lab → · Contrast checker → · Palette generator →

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