#1D258C#1D258C

#1D258C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.166 H 270.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1D258C
RGBrgb(29, 37, 140)
HSLhsl(236, 66%, 33%)
HSVhsv(236, 79%, 55%)
CMYKcmyk(79.3%, 73.6%, 0%, 45.1%)
CIE-LABlab(21.86, 34.78, -57.46)
CIE-LCHlch(21.86, 67.17, 301.19°)
OKLaboklab(34.08% 0.0012 -0.1664)
OKLCHoklch(34.08% 0.166 270.4)
XYZxyz(5.9003, 3.4771, 25.1660)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D258C #8C841D
analogous
#1D5C8C #1D258C #4D1D8C
triadic
#1D258C #8C1D25 #258C1D
tetradic
#1D258C #8C1D5C #8C841D #1D8C4D
square
#1D258C #8C1D5C #8C841D #1D8C4D
split-complementary
#1D258C #8C4D1D #5C8C1D
monochromatic
#080A27 #121859 #1D258C #2832BF #4A54D9

Accessibility & contrast

On white

12.38
#1D258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1D258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D258C
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D258C#FFFFFF#000000##FFFFFF
##1D258C1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d258c;
/* rgb */ color: rgb(29, 37, 140);
/* oklch */ color: oklch(34.1% 0.166 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e60af',
    500: '#1d258c',
    950: '#000000',
  },
}
SCSS
$custom: #1d258c;
$custom-light: #6e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d258c",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 235.676,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34082,
    "c": 0.16639,
    "h": 270.4
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#1D258C
secondary
#BCB349
accent
#DC3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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