#1D207F#1D207F

#1D207F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.155 H 272.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#1D207F
RGBrgb(29, 32, 127)
HSLhsl(238, 63%, 31%)
HSVhsv(238, 77%, 50%)
CMYKcmyk(77.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.33, 33.19, -53.46)
CIE-LCHlch(19.33, 62.92, 301.84°)
OKLaboklab(31.85% 0.0056 -0.1547)
OKLCHoklch(31.85% 0.155 272.1)
XYZxyz(4.8527, 2.8260, 20.3643)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D207F #7F7C1D
analogous
#1D517F #1D207F #4B1D7F
triadic
#1D207F #7F1D20 #207F1D
tetradic
#1D207F #7F1D51 #7F7C1D #1D7F4B
square
#1D207F #7F1D51 #7F7C1D #1D7F4B
split-complementary
#1D207F #7F4B1D #517F1D
monochromatic
#06071B #12134D #1D207F #282DB1 #4247D4

Accessibility & contrast

On white

13.42
#1D207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D207F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D207F#FFFFFF#000000##FFFFFF
##1D207F1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d207f;
/* rgb */ color: rgb(29, 32, 127);
/* oklch */ color: oklch(31.9% 0.155 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ca5',
    500: '#1d207f',
    950: '#000000',
  },
}
SCSS
$custom: #1d207f;
$custom-light: #6b5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d207f",
  "rgb": {
    "r": 29,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 238.163,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31853,
    "c": 0.15481,
    "h": 272.1
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#1D207F
secondary
#B2AF45
accent
#E142E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D207F

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

Preview Lab → · Contrast checker → · Palette generator →

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