#1D338C#1D338C

#1D338C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.150 H 267.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#1D338C
RGBrgb(29, 51, 140)
HSLhsl(228, 66%, 33%)
HSVhsv(228, 79%, 55%)
CMYKcmyk(79.3%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.33, 25.52, -51.77)
CIE-LCHlch(25.33, 57.72, 296.25°)
OKLaboklab(36.61% -0.0066 -0.1497)
OKLCHoklch(36.61% 0.15 267.5)
XYZxyz(6.4225, 4.5216, 25.3401)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D338C #8C761D
analogous
#1D6A8C #1D338C #3E1D8C
triadic
#1D338C #8C1D33 #338C1D
tetradic
#1D338C #8C1D6A #8C761D #1D8C3E
square
#1D338C #8C1D6A #8C761D #1D8C3E
split-complementary
#1D338C #8C3E1D #6A8C1D
monochromatic
#080E27 #122159 #1D338C #2845BF #4A66D9

Accessibility & contrast

On white

11.03
#1D338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1D338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D338C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D338C#FFFFFF#000000##FFFFFF
##1D338C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1d338c;
/* rgb */ color: rgb(29, 51, 140);
/* oklch */ color: oklch(36.6% 0.150 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6aae',
    500: '#1d338c',
    950: '#000000',
  },
}
SCSS
$custom: #1d338c;
$custom-light: #6c6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d338c",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 228.108,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.14985,
    "h": 267.5
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#1D338C
secondary
#BCA549
accent
#C73FE9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D338C

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

Preview Lab → · Contrast checker → · Palette generator →

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