#1D255B#1D255B

#1D255B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.097 H 272.6°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#1D255B
RGBrgb(29, 37, 91)
HSLhsl(232, 52%, 24%)
HSVhsv(232, 68%, 36%)
CMYKcmyk(68.1%, 59.3%, 0%, 64.3%)
CIE-LABlab(17.18, 15.99, -33.59)
CIE-LCHlch(17.18, 37.20, 295.46°)
OKLaboklab(29.22% 0.0044 -0.0965)
OKLCHoklch(29.22% 0.097 272.6)
XYZxyz(3.0560, 2.3394, 10.1860)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D255B #5B531D
analogous
#1D445B #1D255B #341D5B
triadic
#1D255B #5B1D25 #255B1D
tetradic
#1D255B #5B1D44 #5B531D #1D5B34
square
#1D255B #5B1D44 #5B531D #1D5B34
split-complementary
#1D255B #5B341D #445B1D
monochromatic
#070917 #0E122D #1D255B #2C3889 #3B4BB8

Accessibility & contrast

On white

14.31
#1D255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1D255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D255B
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D255B#FFFFFF#000000##FFFFFF
##1D255B1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d255b;
/* rgb */ color: rgb(29, 37, 91);
/* oklch */ color: oklch(29.2% 0.097 272.6);
Tailwind
colors: {
  custom: {
    50: '#615f8a',
    500: '#1d255b',
    950: '#000000',
  },
}
SCSS
$custom: #1d255b;
$custom-light: #615f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d255b",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 232.258,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29218,
    "c": 0.09659,
    "h": 272.6
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#1D255B
secondary
#908644
accent
#C94DDB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1D255B

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

Preview Lab → · Contrast checker → · Palette generator →

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