#1D138C#1D138C

#1D138C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.183 H 272.3°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1D138C
RGBrgb(29, 19, 140)
HSLhsl(245, 76%, 31%)
HSVhsv(245, 86%, 55%)
CMYKcmyk(79.3%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.45, 44.56, -63.11)
CIE-LCHlch(18.45, 77.25, 305.23°)
OKLaboklab(31.69% 0.0074 -0.1825)
OKLCHoklch(31.69% 0.183 272.3)
XYZxyz(5.4716, 2.6198, 25.0232)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D138C #828C13
analogous
#13458C #1D138C #59138C
triadic
#1D138C #8C1D13 #138C1D
tetradic
#1D138C #8C1345 #828C13 #138C59
square
#1D138C #8C1345 #828C13 #138C59
split-complementary
#1D138C #8C5913 #458C13
monochromatic
#070420 #120C56 #1D138C #281AC2 #4436E4

Accessibility & contrast

On white

13.78
#1D138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1D138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D138C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D138C#FFFFFF#000000##FFFFFF
##1D138C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d138c;
/* rgb */ color: rgb(29, 19, 140);
/* oklch */ color: oklch(31.7% 0.183 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f56af',
    500: '#1d138c',
    950: '#000000',
  },
}
SCSS
$custom: #1d138c;
$custom-light: #6f56af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d138c",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 244.959,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31686,
    "c": 0.18268,
    "h": 272.3
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#1D138C
secondary
#B5C03B
accent
#F335E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D138C

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

Preview Lab → · Contrast checker → · Palette generator →

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