#1D138F#1D138F

#1D138F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.186 H 272.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1D138F
RGBrgb(29, 19, 143)
HSLhsl(245, 77%, 32%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(79.7%, 86.7%, 0%, 43.9%)
CIE-LABlab(18.84, 45.49, -64.33)
CIE-LCHlch(18.84, 78.79, 305.26°)
OKLaboklab(32.06% 0.0066 -0.1861)
OKLCHoklch(32.06% 0.186 272)
XYZxyz(5.6958, 2.7095, 26.2041)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D138F #858F13
analogous
#13478F #1D138F #5B138F
triadic
#1D138F #8F1D13 #138F1D
tetradic
#1D138F #8F1347 #858F13 #138F5B
square
#1D138F #8F1347 #858F13 #138F5B
split-complementary
#1D138F #8F5B13 #478F13
monochromatic
#070523 #120C59 #1D138F #281AC5 #4638E5

Accessibility & contrast

On white

13.62
#1D138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D138F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D138F#FFFFFF#000000##FFFFFF
##1D138F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d138f;
/* rgb */ color: rgb(29, 19, 143);
/* oklch */ color: oklch(32.1% 0.186 272.0);
Tailwind
colors: {
  custom: {
    50: '#7056b1',
    500: '#1d138f',
    950: '#000000',
  },
}
SCSS
$custom: #1d138f;
$custom-light: #7056b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d138f",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 244.839,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32064,
    "c": 0.1862,
    "h": 272
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D138F

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

Preview Lab → · Contrast checker → · Palette generator →

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