#1D255C#1D255C

#1D255C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.098 H 272.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#1D255C
RGBrgb(29, 37, 92)
HSLhsl(232, 52%, 24%)
HSVhsv(232, 68%, 36%)
CMYKcmyk(68.5%, 59.8%, 0%, 63.9%)
CIE-LABlab(17.26, 16.39, -34.12)
CIE-LCHlch(17.26, 37.85, 295.65°)
OKLaboklab(29.31% 0.0044 -0.0981)
OKLCHoklch(29.31% 0.098 272.6)
XYZxyz(3.0994, 2.3568, 10.4147)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D255C #5C541D
analogous
#1D445C #1D255C #341D5C
triadic
#1D255C #5C1D25 #255C1D
tetradic
#1D255C #5C1D44 #5C541D #1D5C34
square
#1D255C #5C1D44 #5C541D #1D5C34
split-complementary
#1D255C #5C341D #445C1D
monochromatic
#070917 #0E122D #1D255C #2C388B #3A4AB9

Accessibility & contrast

On white

14.27
#1D255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D255C
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D255C#FFFFFF#000000##FFFFFF
##1D255C1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d255c;
/* rgb */ color: rgb(29, 37, 92);
/* oklch */ color: oklch(29.3% 0.098 272.6);
Tailwind
colors: {
  custom: {
    50: '#615f8b',
    500: '#1d255c',
    950: '#000000',
  },
}
SCSS
$custom: #1d255c;
$custom-light: #615f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d255c",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 232.381,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29306,
    "c": 0.09816,
    "h": 272.6
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#1D255C
secondary
#918744
accent
#C94CDC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1D255C

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

Preview Lab → · Contrast checker → · Palette generator →

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