#1D238F#1D238F

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

Color values

HEX#1D238F
RGBrgb(29, 35, 143)
HSLhsl(237, 66%, 34%)
HSVhsv(237, 80%, 56%)
CMYKcmyk(79.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.75, 37.09, -59.52)
CIE-LCHlch(21.75, 70.13, 301.93°)
OKLaboklab(34.1% 0.0016 -0.1724)
OKLCHoklch(34.1% 0.172 270.5)
XYZxyz(6.0640, 3.4458, 26.3268)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D238F #8F891D
analogous
#1D5C8F #1D238F #501D8F
triadic
#1D238F #8F1D23 #238F1D
tetradic
#1D238F #8F1D5C #8F891D #1D8F50
square
#1D238F #8F1D5C #8F891D #1D8F50
split-complementary
#1D238F #8F501D #5C8F1D
monochromatic
#080A29 #13175C #1D238F #272FC2 #4C53DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D238F#FFFFFF#000000##FFFFFF
##1D238F1.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)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d238f;
/* rgb */ color: rgb(29, 35, 143);
/* oklch */ color: oklch(34.1% 0.172 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f5fb1',
    500: '#1d238f',
    950: '#000000',
  },
}
SCSS
$custom: #1d238f;
$custom-light: #6f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d238f",
  "rgb": {
    "r": 29,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 236.842,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.17237,
    "h": 270.5
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#1D238F
secondary
#BDB74B
accent
#E03FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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