#1A238E#1A238E

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

Color values

HEX#1A238E
RGBrgb(26, 35, 142)
HSLhsl(235, 69%, 33%)
HSVhsv(235, 82%, 56%)
CMYKcmyk(81.7%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.48, 36.49, -59.34)
CIE-LCHlch(21.48, 69.66, 301.59°)
OKLaboklab(33.84% -0.0014 -0.1719)
OKLCHoklch(33.84% 0.172 269.5)
XYZxyz(5.9078, 3.3740, 25.9258)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A238E #8E851A
analogous
#1A5D8E #1A238E #4B1A8E
triadic
#1A238E #8E1A23 #238E1A
tetradic
#1A238E #8E1A5D #8E851A #1A8E4B
square
#1A238E #8E1A5D #8E851A #1A8E4B
split-complementary
#1A238E #8E4B1A #5D8E1A
monochromatic
#070927 #11165A #1A238E #2330C2 #4551DD

Accessibility & contrast

On white

12.54
#1A238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1A238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A238E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A238E#FFFFFF#000000##FFFFFF
##1A238E1.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a238e;
/* rgb */ color: rgb(26, 35, 142);
/* oklch */ color: oklch(33.8% 0.172 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d5fb0',
    500: '#1a238e',
    950: '#000000',
  },
}
SCSS
$custom: #1a238e;
$custom-light: #6d5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a238e",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 235.345,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33835,
    "c": 0.1719,
    "h": 269.5
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#1A238E
secondary
#BEB545
accent
#DE3CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #1A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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