#1D255E#1D255E

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

Color values

HEX#1D255E
RGBrgb(29, 37, 94)
HSLhsl(233, 53%, 24%)
HSVhsv(233, 69%, 37%)
CMYKcmyk(69.1%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.42, 17.18, -35.18)
CIE-LCHlch(17.42, 39.15, 296.03°)
OKLaboklab(29.48% 0.0045 -0.1012)
OKLCHoklch(29.48% 0.101 272.6)
XYZxyz(3.1880, 2.3922, 10.8812)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D255E #5E561D
analogous
#1D465E #1D255E #361D5E
triadic
#1D255E #5E1D25 #255E1D
tetradic
#1D255E #5E1D46 #5E561D #1D5E36
square
#1D255E #5E1D46 #5E561D #1D5E36
split-complementary
#1D255E #5E361D #465E1D
monochromatic
#070917 #0F132F #1D255E #2B378D #3A4ABC

Accessibility & contrast

On white

14.20
#1D255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D255E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D255E#FFFFFF#000000##FFFFFF
##1D255E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d255e;
/* rgb */ color: rgb(29, 37, 94);
/* oklch */ color: oklch(29.5% 0.101 272.6);
Tailwind
colors: {
  custom: {
    50: '#625f8c',
    500: '#1d255e',
    950: '#000000',
  },
}
SCSS
$custom: #1d255e;
$custom-light: #625f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d255e",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 232.615,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29482,
    "c": 0.10128,
    "h": 272.6
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#1D255E
secondary
#938944
accent
#CA4CDC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1D255E

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

Preview Lab → · Contrast checker → · Palette generator →

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