#1D256D#1D256D

#1D256D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.124 H 272.0°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1D256D
RGBrgb(29, 37, 109)
HSLhsl(234, 58%, 27%)
HSVhsv(234, 73%, 43%)
CMYKcmyk(73.4%, 66.1%, 0%, 57.3%)
CIE-LABlab(18.75, 23.08, -42.87)
CIE-LCHlch(18.75, 48.69, 298.30°)
OKLaboklab(30.88% 0.0043 -0.1237)
OKLCHoklch(30.88% 0.124 272)
XYZxyz(3.9276, 2.6881, 14.7769)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D256D #6D651D
analogous
#1D4D6D #1D256D #3D1D6D
triadic
#1D256D #6D1D25 #256D1D
tetradic
#1D256D #6D1D4D #6D651D #1D6D3D
square
#1D256D #6D1D4D #6D651D #1D6D3D
split-complementary
#1D256D #6D3D1D #4D6D1D
monochromatic
#060818 #10153D #1D256D #2A359D #3A48CB

Accessibility & contrast

On white

13.66
#1D256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D256D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D256D#FFFFFF#000000##FFFFFF
##1D256D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d256d;
/* rgb */ color: rgb(29, 37, 109);
/* oklch */ color: oklch(30.9% 0.124 272.0);
Tailwind
colors: {
  custom: {
    50: '#655f98',
    500: '#1d256d',
    950: '#000000',
  },
}
SCSS
$custom: #1d256d;
$custom-light: #655f98;
$custom-dark: #000000;
JSON
{
  "hex": "#1d256d",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 234,
    "s": 57.971,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30878,
    "c": 0.12383,
    "h": 272
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#1D256D
secondary
#A29844
accent
#D247E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1D256D

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

Preview Lab → · Contrast checker → · Palette generator →

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