#1A238D#1A238D

#1A238D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.171 H 269.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1A238D
RGBrgb(26, 35, 141)
HSLhsl(235, 69%, 33%)
HSVhsv(235, 82%, 55%)
CMYKcmyk(81.6%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.37, 36.13, -58.90)
CIE-LCHlch(21.37, 69.10, 301.53°)
OKLaboklab(33.72% -0.0012 -0.1706)
OKLCHoklch(33.72% 0.171 269.6)
XYZxyz(5.8331, 3.3441, 25.5322)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A238D #8D841A
analogous
#1A5D8D #1A238D #4A1A8D
triadic
#1A238D #8D1A23 #238D1A
tetradic
#1A238D #8D1A5D #8D841A #1A8D4A
square
#1A238D #8D1A5D #8D841A #1A8D4A
split-complementary
#1A238D #8D4A1A #5D8D1A
monochromatic
#070926 #101659 #1A238D #2430C1 #4551DD

Accessibility & contrast

On white

12.58
#1A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A238D
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A238D#FFFFFF#000000##FFFFFF
##1A238D1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a238d;
/* rgb */ color: rgb(26, 35, 141);
/* oklch */ color: oklch(33.7% 0.171 269.6);
Tailwind
colors: {
  custom: {
    50: '#6d5faf',
    500: '#1a238d',
    950: '#000000',
  },
}
SCSS
$custom: #1a238d;
$custom-light: #6d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1a238d",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 235.304,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33722,
    "c": 0.17062,
    "h": 269.6
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#1A238D
secondary
#BEB445
accent
#DE3CEC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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