#1A238F#1A238F

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

Color values

HEX#1A238F
RGBrgb(26, 35, 143)
HSLhsl(235, 69%, 33%)
HSVhsv(235, 82%, 56%)
CMYKcmyk(81.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.59, 36.85, -59.77)
CIE-LCHlch(21.59, 70.22, 301.66°)
OKLaboklab(33.95% -0.0015 -0.1732)
OKLCHoklch(33.95% 0.173 269.5)
XYZxyz(5.9833, 3.4042, 26.3230)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A238F #8F861A
analogous
#1A5D8F #1A238F #4C1A8F
triadic
#1A238F #8F1A23 #238F1A
tetradic
#1A238F #8F1A5D #8F861A #1A8F4C
square
#1A238F #8F1A5D #8F861A #1A8F4C
split-complementary
#1A238F #8F4C1A #5D8F1A
monochromatic
#070A27 #11165B #1A238F #2330C3 #4652DD

Accessibility & contrast

On white

12.49
#1A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A238F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A238F#FFFFFF#000000##FFFFFF
##1A238F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a238f;
/* rgb */ color: rgb(26, 35, 143);
/* oklch */ color: oklch(33.9% 0.173 269.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fb1',
    500: '#1a238f',
    950: '#000000',
  },
}
SCSS
$custom: #1a238f;
$custom-light: #6e5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a238f",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 235.385,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33947,
    "c": 0.17317,
    "h": 269.5
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A238F

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

Preview Lab → · Contrast checker → · Palette generator →

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