#1D257E#1D257E

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

Color values

HEX#1D257E
RGBrgb(29, 37, 126)
HSLhsl(235, 63%, 30%)
HSVhsv(235, 77%, 49%)
CMYKcmyk(77%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.40, 29.60, -51.06)
CIE-LCHlch(20.40, 59.02, 300.10°)
OKLaboklab(32.59% 0.0029 -0.1477)
OKLCHoklch(32.59% 0.148 271.1)
XYZxyz(4.9329, 3.0902, 20.0711)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D257E #7E761D
analogous
#1D557E #1D257E #461D7E
triadic
#1D257E #7E1D25 #257E1D
tetradic
#1D257E #7E1D55 #7E761D #1D7E46
square
#1D257E #7E1D55 #7E761D #1D7E46
split-complementary
#1D257E #7E461D #557E1D
monochromatic
#06081B #12164C #1D257E #2834B0 #424ED3

Accessibility & contrast

On white

12.98
#1D257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D257E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D257E#FFFFFF#000000##FFFFFF
##1D257E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d257e;
/* rgb */ color: rgb(29, 37, 126);
/* oklch */ color: oklch(32.6% 0.148 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1d257e',
    950: '#000000',
  },
}
SCSS
$custom: #1d257e;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d257e",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 235.052,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3259,
    "c": 0.14776,
    "h": 271.1
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D257E

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

Preview Lab → · Contrast checker → · Palette generator →

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