#1D52A6#1D52A6

#1D52A6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.147 H 259.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#1D52A6
RGBrgb(29, 82, 166)
HSLhsl(217, 70%, 38%)
HSVhsv(217, 83%, 65%)
CMYKcmyk(82.5%, 50.6%, 0%, 34.9%)
CIE-LABlab(36.08, 14.72, -50.11)
CIE-LCHlch(36.08, 52.23, 286.37°)
OKLaboklab(45.37% -0.0266 -0.1443)
OKLCHoklch(45.37% 0.147 259.6)
XYZxyz(10.4044, 9.0477, 37.2670)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D52A6 #A6711D
analogous
#1D96A6 #1D52A6 #2C1DA6
triadic
#1D52A6 #A61D52 #52A61D
tetradic
#1D52A6 #A61D96 #A6711D #1DA62C
square
#1D52A6 #A61D96 #A6711D #1DA62C
split-complementary
#1D52A6 #A62C1D #96A61D
monochromatic
#0B1F3E #143872 #1D52A6 #276CD9 #5B8FE2

Accessibility & contrast

On white

7.47
#1D52A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1D52A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D52A6
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D52A6#FFFFFF#000000##FFFFFF
##1D52A61.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5BA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1d52a6;
/* rgb */ color: rgb(29, 82, 166);
/* oklch */ color: oklch(45.4% 0.147 259.6);
Tailwind
colors: {
  custom: {
    50: '#7181c1',
    500: '#1d52a6',
    950: '#000000',
  },
}
SCSS
$custom: #1d52a6;
$custom-light: #7181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d52a6",
  "rgb": {
    "r": 29,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 216.788,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45367,
    "c": 0.14671,
    "h": 259.6
  },
  "luminance": 0.09049
}

Semantic roles & 50–950 ramp

primary
#1D52A6
secondary
#C69C59
accent
#A83BED
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1D52A6

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

Preview Lab → · Contrast checker → · Palette generator →

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