#1A238B#1A238B

#1A238B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.168 H 269.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1A238B
RGBrgb(26, 35, 139)
HSLhsl(235, 68%, 32%)
HSVhsv(235, 81%, 55%)
CMYKcmyk(81.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.15, 35.41, -58.01)
CIE-LCHlch(21.15, 67.97, 301.40°)
OKLaboklab(33.5% -0.001 -0.168)
OKLCHoklch(33.5% 0.168 269.7)
XYZxyz(5.6856, 3.2851, 24.7555)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A238B #8B821A
analogous
#1A5C8B #1A238B #491A8B
triadic
#1A238B #8B1A23 #238B1A
tetradic
#1A238B #8B1A5C #8B821A #1A8B49
square
#1A238B #8B1A5C #8B821A #1A8B49
split-complementary
#1A238B #8B491A #5C8B1A
monochromatic
#070924 #101657 #1A238B #2430BF #4350DC

Accessibility & contrast

On white

12.67
#1A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1A238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A238B
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A238B#FFFFFF#000000##FFFFFF
##1A238B1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a238b;
/* rgb */ color: rgb(26, 35, 139);
/* oklch */ color: oklch(33.5% 0.168 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d5fae',
    500: '#1a238b',
    950: '#000000',
  },
}
SCSS
$custom: #1a238b;
$custom-light: #6d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1a238b",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 235.221,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33499,
    "c": 0.16805,
    "h": 269.7
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#1A238B
secondary
#BDB344
accent
#DD3CEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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