#1D247F#1D247F

#1D247F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.150 H 271.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1D247F
RGBrgb(29, 36, 127)
HSLhsl(236, 63%, 31%)
HSVhsv(236, 77%, 50%)
CMYKcmyk(77.2%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.26, 30.63, -51.93)
CIE-LCHlch(20.26, 60.29, 300.54°)
OKLaboklab(32.52% 0.0034 -0.1503)
OKLCHoklch(32.52% 0.15 271.3)
XYZxyz(4.9670, 3.0547, 20.4024)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D247F #7F781D
analogous
#1D557F #1D247F #471D7F
triadic
#1D247F #7F1D24 #247F1D
tetradic
#1D247F #7F1D55 #7F781D #1D7F47
square
#1D247F #7F1D55 #7F781D #1D7F47
split-complementary
#1D247F #7F471D #557F1D
monochromatic
#06081B #12164D #1D247F #2832B1 #424DD4

Accessibility & contrast

On white

13.04
#1D247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D247F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D247F#FFFFFF#000000##FFFFFF
##1D247F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d247f;
/* rgb */ color: rgb(29, 36, 127);
/* oklch */ color: oklch(32.5% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a5fa5',
    500: '#1d247f',
    950: '#000000',
  },
}
SCSS
$custom: #1d247f;
$custom-light: #6a5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d247f",
  "rgb": {
    "r": 29,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 235.714,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3252,
    "c": 0.1503,
    "h": 271.3
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#1D247F
secondary
#B2AB45
accent
#DA42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D247F

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

Preview Lab → · Contrast checker → · Palette generator →

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