#1D256E#1D256E

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

Color values

HEX#1D256E
RGBrgb(29, 37, 110)
HSLhsl(234, 58%, 27%)
HSVhsv(234, 74%, 43%)
CMYKcmyk(73.6%, 66.4%, 0%, 56.9%)
CIE-LABlab(18.84, 23.47, -43.36)
CIE-LCHlch(18.84, 49.31, 298.43°)
OKLaboklab(30.98% 0.0043 -0.1252)
OKLCHoklch(30.98% 0.125 272)
XYZxyz(3.9818, 2.7097, 15.0620)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D256E #6E661D
analogous
#1D4E6E #1D256E #3E1D6E
triadic
#1D256E #6E1D25 #256E1D
tetradic
#1D256E #6E1D4E #6E661D #1D6E3E
square
#1D256E #6E1D4E #6E661D #1D6E3E
split-complementary
#1D256E #6E3E1D #4E6E1D
monochromatic
#060818 #10153E #1D256E #2A359E #3A49CB

Accessibility & contrast

On white

13.62
#1D256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D256E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D256E#FFFFFF#000000##FFFFFF
##1D256E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d256e;
/* rgb */ color: rgb(29, 37, 110);
/* oklch */ color: oklch(31.0% 0.125 272.0);
Tailwind
colors: {
  custom: {
    50: '#665f98',
    500: '#1d256e',
    950: '#000000',
  },
}
SCSS
$custom: #1d256e;
$custom-light: #665f98;
$custom-dark: #000000;
JSON
{
  "hex": "#1d256e",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 234.074,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30975,
    "c": 0.12527,
    "h": 272
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#1D256E
secondary
#A29944
accent
#D246E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1D256E

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

Preview Lab → · Contrast checker → · Palette generator →

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