#1D255F#1D255F

#1D255F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.103 H 272.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#1D255F
RGBrgb(29, 37, 95)
HSLhsl(233, 53%, 24%)
HSVhsv(233, 69%, 37%)
CMYKcmyk(69.5%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.51, 17.57, -35.71)
CIE-LCHlch(17.51, 39.80, 296.20°)
OKLaboklab(29.57% 0.0045 -0.1027)
OKLCHoklch(29.57% 0.103 272.5)
XYZxyz(3.2331, 2.4103, 11.1191)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D255F #5F571D
analogous
#1D465F #1D255F #361D5F
triadic
#1D255F #5F1D25 #255F1D
tetradic
#1D255F #5F1D46 #5F571D #1D5F36
square
#1D255F #5F1D46 #5F571D #1D5F36
split-complementary
#1D255F #5F361D #465F1D
monochromatic
#070917 #0F1330 #1D255F #2B378E #3A4ABD

Accessibility & contrast

On white

14.17
#1D255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D255F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D255F#FFFFFF#000000##FFFFFF
##1D255F1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d255f;
/* rgb */ color: rgb(29, 37, 95);
/* oklch */ color: oklch(29.6% 0.103 272.5);
Tailwind
colors: {
  custom: {
    50: '#625f8d',
    500: '#1d255f',
    950: '#000000',
  },
}
SCSS
$custom: #1d255f;
$custom-light: #625f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d255f",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 232.727,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29571,
    "c": 0.10283,
    "h": 272.5
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#1D255F
secondary
#948A44
accent
#CB4BDD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1D255F

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

Preview Lab → · Contrast checker → · Palette generator →

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