#1D127A#1D127A

#1D127A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.162 H 274.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#1D127A
RGBrgb(29, 18, 122)
HSLhsl(246, 74%, 27%)
HSVhsv(246, 85%, 48%)
CMYKcmyk(76.2%, 85.2%, 0%, 52.2%)
CIE-LABlab(16.00, 39.34, -55.79)
CIE-LCHlch(16.00, 68.26, 305.19°)
OKLaboklab(29.33% 0.0129 -0.1613)
OKLCHoklch(29.33% 0.162 274.6)
XYZxyz(4.2347, 2.0985, 18.5905)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D127A #6F7A12
analogous
#123B7A #1D127A #51127A
triadic
#1D127A #7A1D12 #127A1D
tetradic
#1D127A #7A123B #6F7A12 #127A51
square
#1D127A #7A123B #6F7A12 #127A51
split-complementary
#1D127A #7A5112 #3B7A12
monochromatic
#06041B #100A45 #1D127A #2A1AAF #3B27DF

Accessibility & contrast

On white

14.79
#1D127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D127A
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D127A#FFFFFF#000000##FFFFFF
##1D127A1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7D
Deuteranopia (green-blind)
#002378
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d127a;
/* rgb */ color: rgb(29, 18, 122);
/* oklch */ color: oklch(29.3% 0.162 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b54a2',
    500: '#1d127a',
    950: '#000000',
  },
}
SCSS
$custom: #1d127a;
$custom-light: #6b54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d127a",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 246.346,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29334,
    "c": 0.16182,
    "h": 274.6
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#1D127A
secondary
#A3B038
accent
#F137DD
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D127A

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

Preview Lab → · Contrast checker → · Palette generator →

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