#1D248E#1D248E

#1D248E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.170 H 270.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1D248E
RGBrgb(29, 36, 142)
HSLhsl(236, 66%, 34%)
HSVhsv(236, 80%, 56%)
CMYKcmyk(79.6%, 74.6%, 0%, 44.3%)
CIE-LABlab(21.85, 36.12, -58.72)
CIE-LCHlch(21.85, 68.94, 301.60°)
OKLaboklab(34.14% 0.0013 -0.17)
OKLCHoklch(34.14% 0.17 270.5)
XYZxyz(6.0184, 3.4753, 25.9395)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D248E #8E871D
analogous
#1D5C8E #1D248E #4E1D8E
triadic
#1D248E #8E1D24 #248E1D
tetradic
#1D248E #8E1D5C #8E871D #1D8E4E
square
#1D248E #8E1D5C #8E871D #1D8E4E
split-complementary
#1D248E #8E4E1D #5C8E1D
monochromatic
#080A28 #13175B #1D248E #2731C1 #4B54DA

Accessibility & contrast

On white

12.39
#1D248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1D248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D248E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D248E#FFFFFF#000000##FFFFFF
##1D248E1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d248e;
/* rgb */ color: rgb(29, 36, 142);
/* oklch */ color: oklch(34.1% 0.170 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e60b0',
    500: '#1d248e',
    950: '#000000',
  },
}
SCSS
$custom: #1d248e;
$custom-light: #6e60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d248e",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 236.283,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34142,
    "c": 0.17005,
    "h": 270.5
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#1D248E
secondary
#BDB54A
accent
#DE3FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1D248E

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

Preview Lab → · Contrast checker → · Palette generator →

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