#1D148B#1D148B

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

Color values

HEX#1D148B
RGBrgb(29, 20, 139)
HSLhsl(245, 75%, 31%)
HSVhsv(245, 86%, 55%)
CMYKcmyk(79.1%, 85.6%, 0%, 45.5%)
CIE-LABlab(18.47, 43.80, -62.44)
CIE-LCHlch(18.47, 76.27, 305.05°)
OKLaboklab(31.67% 0.0075 -0.1806)
OKLCHoklch(31.67% 0.181 272.4)
XYZxyz(5.4155, 2.6250, 24.6424)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D148B #828B14
analogous
#14468B #1D148B #58148B
triadic
#1D148B #8B1D14 #148B1D
tetradic
#1D148B #8B1446 #828B14 #148B58
square
#1D148B #8B1446 #828B14 #148B58
split-complementary
#1D148B #8B5814 #468B14
monochromatic
#070520 #120C55 #1D148B #281CC1 #4437E2

Accessibility & contrast

On white

13.77
#1D148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D148B
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D148B#FFFFFF#000000##FFFFFF
##1D148B1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d148b;
/* rgb */ color: rgb(29, 20, 139);
/* oklch */ color: oklch(31.7% 0.181 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f56ae',
    500: '#1d148b',
    950: '#000000',
  },
}
SCSS
$custom: #1d148b;
$custom-light: #6f56ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d148b",
  "rgb": {
    "r": 29,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 244.538,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31665,
    "c": 0.18078,
    "h": 272.4
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#1D148B
secondary
#B5BF3C
accent
#F136E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D148B

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

Preview Lab → · Contrast checker → · Palette generator →

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