#1A239D#1A239D

#1A239D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.191 H 268.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1A239D
RGBrgb(26, 35, 157)
HSLhsl(236, 72%, 36%)
HSVhsv(236, 83%, 62%)
CMYKcmyk(83.4%, 77.7%, 0%, 38.4%)
CIE-LABlab(23.19, 41.77, -65.77)
CIE-LCHlch(23.19, 77.92, 302.42°)
OKLaboklab(35.55% -0.0037 -0.1906)
OKLCHoklch(35.55% 0.191 268.9)
XYZxyz(7.1107, 3.8551, 32.2611)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A239D #9D941A
analogous
#1A649D #1A239D #521A9D
triadic
#1A239D #9D1A23 #239D1A
tetradic
#1A239D #9D1A64 #9D941A #1A9D52
square
#1A239D #9D1A64 #9D941A #1A9D52
split-complementary
#1A239D #9D521A #649D1A
monochromatic
#090C34 #111768 #1A239D #232FD2 #4F5AE2

Accessibility & contrast

On white

11.86
#1A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1A239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A239D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A239D#FFFFFF#000000##FFFFFF
##1A239D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a239d;
/* rgb */ color: rgb(26, 35, 157);
/* oklch */ color: oklch(35.5% 0.191 268.9);
Tailwind
colors: {
  custom: {
    50: '#7160bb',
    500: '#1a239d',
    950: '#000000',
  },
}
SCSS
$custom: #1a239d;
$custom-light: #7160bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1a239d",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 235.878,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35545,
    "c": 0.19061,
    "h": 268.9
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#1A239D
secondary
#C4BC4E
accent
#E239EE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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