#1D147E#1D147E

#1D147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.165 H 273.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#1D147E
RGBrgb(29, 20, 126)
HSLhsl(245, 73%, 29%)
HSVhsv(245, 84%, 49%)
CMYKcmyk(77%, 84.1%, 0%, 50.6%)
CIE-LABlab(16.83, 39.65, -56.96)
CIE-LCHlch(16.83, 69.40, 304.84°)
OKLaboklab(30.06% 0.011 -0.1647)
OKLCHoklch(30.06% 0.165 273.8)
XYZxyz(4.5215, 2.2674, 19.9340)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D147E #757E14
analogous
#14407E #1D147E #52147E
triadic
#1D147E #7E1D14 #147E1D
tetradic
#1D147E #7E1440 #757E14 #147E52
square
#1D147E #7E1440 #757E14 #147E52
split-complementary
#1D147E #7E5214 #407E14
monochromatic
#06041A #110C49 #1D147E #291CB3 #3D2EDE

Accessibility & contrast

On white

14.45
#1D147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D147E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D147E#FFFFFF#000000##FFFFFF
##1D147E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d147e;
/* rgb */ color: rgb(29, 20, 126);
/* oklch */ color: oklch(30.1% 0.165 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1d147e',
    950: '#000000',
  },
}
SCSS
$custom: #1d147e;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d147e",
  "rgb": {
    "r": 29,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 245.094,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.16511,
    "h": 273.8
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#1D147E
secondary
#A9B33A
accent
#EF38E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D147E

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

Preview Lab → · Contrast checker → · Palette generator →

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