#1D315E#1D315E

#1D315E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.3% C 0.084 H 264.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#1D315E
RGBrgb(29, 49, 94)
HSLhsl(222, 53%, 24%)
HSVhsv(222, 69%, 37%)
CMYKcmyk(69.1%, 47.9%, 0%, 63.1%)
CIE-LABlab(21.08, 8.48, -29.30)
CIE-LCHlch(21.08, 30.50, 286.14°)
OKLaboklab(32.25% -0.0085 -0.0837)
OKLCHoklch(32.25% 0.084 264.2)
XYZxyz(3.6247, 3.2657, 11.0268)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D315E #5E4A1D
analogous
#1D525E #1D315E #291D5E
triadic
#1D315E #5E1D31 #315E1D
tetradic
#1D315E #5E1D52 #5E4A1D #1D5E29
square
#1D315E #5E1D52 #5E4A1D #1D5E29
split-complementary
#1D315E #5E291D #525E1D
monochromatic
#070C17 #0F192F #1D315E #2B498D #3A62BC

Accessibility & contrast

On white

12.70
#1D315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D315E
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D315E#FFFFFF#000000##FFFFFF
##1D315E1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3660
Deuteranopia (green-blind)
#11305D
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d315e;
/* rgb */ color: rgb(29, 49, 94);
/* oklch */ color: oklch(32.3% 0.084 264.2);
Tailwind
colors: {
  custom: {
    50: '#61688c',
    500: '#1d315e',
    950: '#000000',
  },
}
SCSS
$custom: #1d315e;
$custom-light: #61688c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d315e",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 221.538,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.08411,
    "h": 264.2
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#1D315E
secondary
#937B44
accent
#B04CDC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1D315E

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

Preview Lab → · Contrast checker → · Palette generator →

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