#1D2255#1D2255

#1D2255 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.092 H 274.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#1D2255
RGBrgb(29, 34, 85)
HSLhsl(235, 49%, 22%)
HSVhsv(235, 66%, 33%)
CMYKcmyk(65.9%, 60%, 0%, 66.7%)
CIE-LABlab(15.80, 15.81, -31.79)
CIE-LCHlch(15.80, 35.51, 296.45°)
OKLaboklab(28.04% 0.0074 -0.0912)
OKLCHoklch(28.04% 0.092 274.6)
XYZxyz(2.7179, 2.0609, 8.8471)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2255 #55501D
analogous
#1D3E55 #1D2255 #341D55
triadic
#1D2255 #551D22 #22551D
tetradic
#1D2255 #551D3E #55501D #1D5534
square
#1D2255 #551D3E #55501D #1D5534
split-complementary
#1D2255 #55341D #3E551D
monochromatic
#080917 #0D1027 #1D2255 #2D3483 #3C47B0

Accessibility & contrast

On white

14.87
#1D2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1D2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2255
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2255#FFFFFF#000000##FFFFFF
##1D22551.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d2255;
/* rgb */ color: rgb(29, 34, 85);
/* oklch */ color: oklch(28.0% 0.092 274.6);
Tailwind
colors: {
  custom: {
    50: '#605c85',
    500: '#1d2255',
    950: '#000000',
  },
}
SCSS
$custom: #1d2255;
$custom-light: #605c85;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2255",
  "rgb": {
    "r": 29,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 234.643,
    "s": 49.123,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28036,
    "c": 0.09153,
    "h": 274.6
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#1D2255
secondary
#8A8444
accent
#CC4FD9
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1D2255

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

Preview Lab → · Contrast checker → · Palette generator →

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