#1D138E#1D138E

#1D138E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.185 H 272.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1D138E
RGBrgb(29, 19, 142)
HSLhsl(245, 76%, 32%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(79.6%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.71, 45.18, -63.93)
CIE-LCHlch(18.71, 78.28, 305.25°)
OKLaboklab(31.94% 0.0069 -0.1849)
OKLCHoklch(31.94% 0.185 272.1)
XYZxyz(5.6204, 2.6793, 25.8069)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D138E #848E13
analogous
#13478E #1D138E #5B138E
triadic
#1D138E #8E1D13 #138E1D
tetradic
#1D138E #8E1347 #848E13 #138E5B
square
#1D138E #8E1347 #848E13 #138E5B
split-complementary
#1D138E #8E5B13 #478E13
monochromatic
#070522 #120C58 #1D138E #281AC4 #4537E4

Accessibility & contrast

On white

13.67
#1D138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D138E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D138E#FFFFFF#000000##FFFFFF
##1D138E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d138e;
/* rgb */ color: rgb(29, 19, 142);
/* oklch */ color: oklch(31.9% 0.185 272.1);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1d138e',
    950: '#000000',
  },
}
SCSS
$custom: #1d138e;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d138e",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 244.878,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31938,
    "c": 0.18503,
    "h": 272.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#1D138E
secondary
#B7C23B
accent
#F335E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D138E

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

Preview Lab → · Contrast checker → · Palette generator →

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