#1D308E#1D308E

#1D308E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.156 H 268.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1D308E
RGBrgb(29, 48, 142)
HSLhsl(230, 66%, 34%)
HSVhsv(230, 80%, 56%)
CMYKcmyk(79.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(24.73, 28.34, -53.99)
CIE-LCHlch(24.73, 60.98, 297.70°)
OKLaboklab(36.22% -0.0048 -0.1562)
OKLCHoklch(36.22% 0.156 268.2)
XYZxyz(6.4444, 4.3274, 26.0816)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D308E #8E7B1D
analogous
#1D688E #1D308E #431D8E
triadic
#1D308E #8E1D30 #308E1D
tetradic
#1D308E #8E1D68 #8E7B1D #1D8E43
square
#1D308E #8E1D68 #8E7B1D #1D8E43
split-complementary
#1D308E #8E431D #688E1D
monochromatic
#080E28 #131F5B #1D308E #2741C1 #4B63DA

Accessibility & contrast

On white

11.26
#1D308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1D308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D308E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D308E#FFFFFF#000000##FFFFFF
##1D308E1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1d308e;
/* rgb */ color: rgb(29, 48, 142);
/* oklch */ color: oklch(36.2% 0.156 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d68b0',
    500: '#1d308e',
    950: '#000000',
  },
}
SCSS
$custom: #1d308e;
$custom-light: #6d68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d308e",
  "rgb": {
    "r": 29,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 229.912,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36222,
    "c": 0.15631,
    "h": 268.2
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#1D308E
secondary
#BDA94A
accent
#CC3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1D308E

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

Preview Lab → · Contrast checker → · Palette generator →

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