#1D127C#1D127C

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

Color values

HEX#1D127C
RGBrgb(29, 18, 124)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 85%, 49%)
CMYKcmyk(76.6%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.25, 39.98, -56.65)
CIE-LCHlch(16.25, 69.34, 305.21°)
OKLaboklab(29.58% 0.0123 -0.1638)
OKLCHoklch(29.58% 0.164 274.3)
XYZxyz(4.3599, 2.1486, 19.2498)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D127C #717C12
analogous
#123C7C #1D127C #52127C
triadic
#1D127C #7C1D12 #127C1D
tetradic
#1D127C #7C123C #717C12 #127C52
square
#1D127C #7C123C #717C12 #127C52
split-complementary
#1D127C #7C5212 #3C7C12
monochromatic
#06041B #110A47 #1D127C #291AB1 #3C29E0

Accessibility & contrast

On white

14.69
#1D127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D127C
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D127C#FFFFFF#000000##FFFFFF
##1D127C1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d127c;
/* rgb */ color: rgb(29, 18, 124);
/* oklch */ color: oklch(29.6% 0.164 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b54a3',
    500: '#1d127c',
    950: '#000000',
  },
}
SCSS
$custom: #1d127c;
$custom-light: #6b54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d127c",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 246.226,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29582,
    "c": 0.16427,
    "h": 274.3
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#1D127C
secondary
#A5B238
accent
#F137DE
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D127C

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

Preview Lab → · Contrast checker → · Palette generator →

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