#1D257F#1D257F

#1D257F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.149 H 271.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1D257F
RGBrgb(29, 37, 127)
HSLhsl(235, 63%, 31%)
HSVhsv(235, 77%, 50%)
CMYKcmyk(77.2%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.50, 29.98, -51.53)
CIE-LCHlch(20.50, 59.62, 300.19°)
OKLaboklab(32.69% 0.0028 -0.1491)
OKLCHoklch(32.69% 0.149 271.1)
XYZxyz(4.9977, 3.1161, 20.4126)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D257F #7F771D
analogous
#1D567F #1D257F #461D7F
triadic
#1D257F #7F1D25 #257F1D
tetradic
#1D257F #7F1D56 #7F771D #1D7F46
square
#1D257F #7F1D56 #7F771D #1D7F46
split-complementary
#1D257F #7F461D #567F1D
monochromatic
#06081B #12164D #1D257F #2834B1 #424ED4

Accessibility & contrast

On white

12.94
#1D257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D257F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D257F#FFFFFF#000000##FFFFFF
##1D257F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d257f;
/* rgb */ color: rgb(29, 37, 127);
/* oklch */ color: oklch(32.7% 0.149 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a60a5',
    500: '#1d257f',
    950: '#000000',
  },
}
SCSS
$custom: #1d257f;
$custom-light: #6a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d257f",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 235.102,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32694,
    "c": 0.14913,
    "h": 271.1
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#1D257F
secondary
#B2A945
accent
#D842E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D257F

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

Preview Lab → · Contrast checker → · Palette generator →

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