#1D248B#1D248B

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

Color values

HEX#1D248B
RGBrgb(29, 36, 139)
HSLhsl(236, 65%, 33%)
HSVhsv(236, 79%, 55%)
CMYKcmyk(79.1%, 74.1%, 0%, 45.5%)
CIE-LABlab(21.53, 35.04, -57.38)
CIE-LCHlch(21.53, 67.24, 301.41°)
OKLaboklab(33.81% 0.0018 -0.1662)
OKLCHoklch(33.81% 0.166 270.6)
XYZxyz(5.7962, 3.3864, 24.7693)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D248B #8B841D
analogous
#1D5B8B #1D248B #4D1D8B
triadic
#1D248B #8B1D24 #248B1D
tetradic
#1D248B #8B1D5B #8B841D #1D8B4D
square
#1D248B #8B1D5B #8B841D #1D8B4D
split-complementary
#1D248B #8B4D1D #5B8B1D
monochromatic
#080A26 #121758 #1D248B #2831BE #4952D9

Accessibility & contrast

On white

12.52
#1D248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D248B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D248B#FFFFFF#000000##FFFFFF
##1D248B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d248b;
/* rgb */ color: rgb(29, 36, 139);
/* oklch */ color: oklch(33.8% 0.166 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d5fae',
    500: '#1d248b',
    950: '#000000',
  },
}
SCSS
$custom: #1d248b;
$custom-light: #6d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d248b",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 236.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33812,
    "c": 0.16617,
    "h": 270.6
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#1D248B
secondary
#BBB449
accent
#DE3FE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D248B

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

Preview Lab → · Contrast checker → · Palette generator →

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