#1D248C#1D248C

#1D248C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.167 H 270.6°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#1D248C
RGBrgb(29, 36, 140)
HSLhsl(236, 66%, 33%)
HSVhsv(236, 79%, 55%)
CMYKcmyk(79.3%, 74.3%, 0%, 45.1%)
CIE-LABlab(21.64, 35.40, -57.83)
CIE-LCHlch(21.64, 67.81, 301.47°)
OKLaboklab(33.92% 0.0016 -0.1675)
OKLCHoklch(33.92% 0.167 270.6)
XYZxyz(5.8696, 3.4158, 25.1558)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D248C #8C851D
analogous
#1D5B8C #1D248C #4D1D8C
triadic
#1D248C #8C1D24 #248C1D
tetradic
#1D248C #8C1D5B #8C851D #1D8C4D
square
#1D248C #8C1D5B #8C851D #1D8C4D
split-complementary
#1D248C #8C4D1D #5B8C1D
monochromatic
#080A27 #121759 #1D248C #2831BF #4A53D9

Accessibility & contrast

On white

12.48
#1D248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D248C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D248C#FFFFFF#000000##FFFFFF
##1D248C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d248c;
/* rgb */ color: rgb(29, 36, 140);
/* oklch */ color: oklch(33.9% 0.167 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e5faf',
    500: '#1d248c',
    950: '#000000',
  },
}
SCSS
$custom: #1d248c;
$custom-light: #6e5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d248c",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 236.216,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.16747,
    "h": 270.6
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#1D248C
secondary
#BCB449
accent
#DE3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D248C

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

Preview Lab → · Contrast checker → · Palette generator →

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