#1D257D#1D257D

#1D257D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.146 H 271.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1D257D
RGBrgb(29, 37, 125)
HSLhsl(235, 62%, 30%)
HSVhsv(235, 77%, 49%)
CMYKcmyk(76.8%, 70.4%, 0%, 51%)
CIE-LABlab(20.30, 29.23, -50.59)
CIE-LCHlch(20.30, 58.43, 300.01°)
OKLaboklab(32.49% 0.0031 -0.1464)
OKLCHoklch(32.49% 0.146 271.2)
XYZxyz(4.8687, 3.0645, 19.7330)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D257D #7D751D
analogous
#1D557D #1D257D #451D7D
triadic
#1D257D #7D1D25 #257D1D
tetradic
#1D257D #7D1D55 #7D751D #1D7D45
square
#1D257D #7D1D55 #7D751D #1D7D45
split-complementary
#1D257D #7D451D #557D1D
monochromatic
#06081A #11164B #1D257D #2934AF #414ED3

Accessibility & contrast

On white

13.02
#1D257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D257D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D257D#FFFFFF#000000##FFFFFF
##1D257D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d257d;
/* rgb */ color: rgb(29, 37, 125);
/* oklch */ color: oklch(32.5% 0.146 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1d257d',
    950: '#000000',
  },
}
SCSS
$custom: #1d257d;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d257d",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 235,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32486,
    "c": 0.14639,
    "h": 271.2
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#1D257D
secondary
#B1A845
accent
#D842E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D257D

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

Preview Lab → · Contrast checker → · Palette generator →

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