#1A335C#1A335C

#1A335C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.4% C 0.079 H 259.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1A335C
RGBrgb(26, 51, 92)
HSLhsl(217, 56%, 23%)
HSVhsv(217, 72%, 36%)
CMYKcmyk(71.7%, 44.6%, 0%, 63.9%)
CIE-LABlab(21.43, 5.66, -27.43)
CIE-LCHlch(21.43, 28.00, 281.65°)
OKLaboklab(32.44% -0.0141 -0.0782)
OKLCHoklch(32.44% 0.079 259.8)
XYZxyz(3.5409, 3.3596, 10.5850)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A335C #5C431A
analogous
#1A545C #1A335C #221A5C
triadic
#1A335C #5C1A33 #335C1A
tetradic
#1A335C #5C1A54 #5C431A #1A5C22
square
#1A335C #5C1A54 #5C431A #1A5C22
split-complementary
#1A335C #5C221A #545C1A
monochromatic
#070D18 #0D192C #1A335C #274D8C #3568BB

Accessibility & contrast

On white

12.56
#1A335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A335C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A335C#FFFFFF#000000##FFFFFF
##1A335C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375E
Deuteranopia (green-blind)
#16315B
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a335c;
/* rgb */ color: rgb(26, 51, 92);
/* oklch */ color: oklch(32.4% 0.079 259.8);
Tailwind
colors: {
  custom: {
    50: '#5f6a8a',
    500: '#1a335c',
    950: '#000000',
  },
}
SCSS
$custom: #1a335c;
$custom-light: #5f6a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a335c",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 217.273,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32437,
    "c": 0.07947,
    "h": 259.8
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#1A335C
secondary
#927340
accent
#A649DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1A335C

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

Preview Lab → · Contrast checker → · Palette generator →

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