#1D0F7E#1D0F7E

#1D0F7E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.169 H 274.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#1D0F7E
RGBrgb(29, 15, 126)
HSLhsl(248, 79%, 28%)
HSVhsv(248, 88%, 49%)
CMYKcmyk(77%, 88.1%, 0%, 50.6%)
CIE-LABlab(16.05, 41.97, -58.26)
CIE-LCHlch(16.05, 71.80, 305.77°)
OKLaboklab(29.52% 0.0126 -0.1684)
OKLCHoklch(29.52% 0.169 274.3)
XYZxyz(4.4422, 2.1088, 19.9075)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F7E #707E0F
analogous
#0F387E #1D0F7E #550F7E
triadic
#1D0F7E #7E1D0F #0F7E1D
tetradic
#1D0F7E #7E0F38 #707E0F #0F7E55
square
#1D0F7E #7E0F38 #707E0F #0F7E55
split-complementary
#1D0F7E #7E550F #387E0F
monochromatic
#06031B #100847 #1D0F7E #2A16B5 #3B23E5

Accessibility & contrast

On white

14.77
#1D0F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1D0F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F7E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F7E#FFFFFF#000000##FFFFFF
##1D0F7E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d0f7e;
/* rgb */ color: rgb(29, 15, 126);
/* oklch */ color: oklch(29.5% 0.169 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c53a5',
    500: '#1d0f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f7e;
$custom-light: #6c53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f7e",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 126
  },
  "hsl": {
    "h": 247.568,
    "s": 78.723,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29518,
    "c": 0.16888,
    "h": 274.3
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#1D0F7E
secondary
#A4B534
accent
#F533DD
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D0F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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