#1D258B#1D258B

#1D258B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 270.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1D258B
RGBrgb(29, 37, 139)
HSLhsl(236, 65%, 33%)
HSVhsv(236, 79%, 55%)
CMYKcmyk(79.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(21.75, 34.42, -57.01)
CIE-LCHlch(21.75, 66.60, 301.12°)
OKLaboklab(33.97% 0.0013 -0.1651)
OKLCHoklch(33.97% 0.165 270.5)
XYZxyz(5.8269, 3.4478, 24.7795)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D258B #8B831D
analogous
#1D5C8B #1D258B #4C1D8B
triadic
#1D258B #8B1D25 #258B1D
tetradic
#1D258B #8B1D5C #8B831D #1D8B4C
square
#1D258B #8B1D5C #8B831D #1D8B4C
split-complementary
#1D258B #8B4C1D #5C8B1D
monochromatic
#080A26 #121858 #1D258B #2832BE #4954D9

Accessibility & contrast

On white

12.43
#1D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D258B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D258B#FFFFFF#000000##FFFFFF
##1D258B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d258b;
/* rgb */ color: rgb(29, 37, 139);
/* oklch */ color: oklch(34.0% 0.165 270.5);
Tailwind
colors: {
  custom: {
    50: '#6d60ae',
    500: '#1d258b',
    950: '#000000',
  },
}
SCSS
$custom: #1d258b;
$custom-light: #6d60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d258b",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 235.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33973,
    "c": 0.16509,
    "h": 270.5
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#1D258B
secondary
#BBB349
accent
#DC3FE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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