#1D127D#1D127D

#1D127D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.165 H 274.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1D127D
RGBrgb(29, 18, 125)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 49%)
CMYKcmyk(76.8%, 85.6%, 0%, 51%)
CIE-LABlab(16.38, 40.30, -57.08)
CIE-LCHlch(16.38, 69.87, 305.23°)
OKLaboklab(29.71% 0.012 -0.165)
OKLCHoklch(29.71% 0.165 274.1)
XYZxyz(4.4234, 2.1740, 19.5846)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D127D #727D12
analogous
#123C7D #1D127D #52127D
triadic
#1D127D #7D1D12 #127D1D
tetradic
#1D127D #7D123C #727D12 #127D52
square
#1D127D #7D123C #727D12 #127D52
split-complementary
#1D127D #7D5212 #3C7D12
monochromatic
#06041B #110A48 #1D127D #291AB2 #3C29E0

Accessibility & contrast

On white

14.64
#1D127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D127D
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D127D#FFFFFF#000000##FFFFFF
##1D127D1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d127d;
/* rgb */ color: rgb(29, 18, 125);
/* oklch */ color: oklch(29.7% 0.165 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b54a4',
    500: '#1d127d',
    950: '#000000',
  },
}
SCSS
$custom: #1d127d;
$custom-light: #6b54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d127d",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 246.168,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29706,
    "c": 0.16548,
    "h": 274.1
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#1D127D
secondary
#A6B338
accent
#F136DE
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D127D

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

Preview Lab → · Contrast checker → · Palette generator →

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