#1D0F7F#1D0F7F

#1D0F7F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.170 H 274.1°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#1D0F7F
RGBrgb(29, 15, 127)
HSLhsl(248, 79%, 28%)
HSVhsv(248, 88%, 50%)
CMYKcmyk(77.2%, 88.2%, 0%, 50.2%)
CIE-LABlab(16.18, 42.27, -58.68)
CIE-LCHlch(16.18, 72.32, 305.77°)
OKLaboklab(29.65% 0.0123 -0.1696)
OKLCHoklch(29.65% 0.17 274.1)
XYZxyz(4.5070, 2.1347, 20.2491)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F7F #717F0F
analogous
#0F397F #1D0F7F #550F7F
triadic
#1D0F7F #7F1D0F #0F7F1D
tetradic
#1D0F7F #7F0F39 #717F0F #0F7F55
square
#1D0F7F #7F0F39 #717F0F #0F7F55
split-complementary
#1D0F7F #7F550F #397F0F
monochromatic
#06031B #110948 #1D0F7F #2915B6 #3C23E5

Accessibility & contrast

On white

14.72
#1D0F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1D0F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F7F
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F7F#FFFFFF#000000##FFFFFF
##1D0F7F1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d0f7f;
/* rgb */ color: rgb(29, 15, 127);
/* oklch */ color: oklch(29.6% 0.170 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c53a5',
    500: '#1d0f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f7f;
$custom-light: #6c53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f7f",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 127
  },
  "hsl": {
    "h": 247.5,
    "s": 78.873,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29645,
    "c": 0.17007,
    "h": 274.1
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#1D0F7F
secondary
#A5B534
accent
#F532DD
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D0F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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