#1D256F#1D256F

#1D256F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.127 H 271.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#1D256F
RGBrgb(29, 37, 111)
HSLhsl(234, 59%, 27%)
HSVhsv(234, 74%, 44%)
CMYKcmyk(73.9%, 66.7%, 0%, 56.5%)
CIE-LABlab(18.94, 23.86, -43.86)
CIE-LCHlch(18.94, 49.93, 298.55°)
OKLaboklab(31.07% 0.0042 -0.1267)
OKLCHoklch(31.07% 0.127 271.9)
XYZxyz(4.0365, 2.7316, 15.3504)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D256F #6F671D
analogous
#1D4E6F #1D256F #3E1D6F
triadic
#1D256F #6F1D25 #256F1D
tetradic
#1D256F #6F1D4E #6F671D #1D6F3E
square
#1D256F #6F1D4E #6F671D #1D6F3E
split-complementary
#1D256F #6F3E1D #4E6F1D
monochromatic
#060818 #10153E #1D256F #2A35A0 #3B49CC

Accessibility & contrast

On white

13.58
#1D256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D256F
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D256F#FFFFFF#000000##FFFFFF
##1D256F1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d256f;
/* rgb */ color: rgb(29, 37, 111);
/* oklch */ color: oklch(31.1% 0.127 271.9);
Tailwind
colors: {
  custom: {
    50: '#665f99',
    500: '#1d256f',
    950: '#000000',
  },
}
SCSS
$custom: #1d256f;
$custom-light: #665f99;
$custom-dark: #000000;
JSON
{
  "hex": "#1d256f",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 234.146,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31072,
    "c": 0.12672,
    "h": 271.9
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#1D256F
secondary
#A39A44
accent
#D346E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1D256F

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

Preview Lab → · Contrast checker → · Palette generator →

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