#1842A5#1842A5

#1842A5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.167 H 263.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#1842A5
RGBrgb(24, 66, 165)
HSLhsl(222, 75%, 37%)
HSVhsv(222, 85%, 65%)
CMYKcmyk(85.5%, 60%, 0%, 35.3%)
CIE-LABlab(31.36, 24.71, -57.18)
CIE-LCHlch(31.36, 62.29, 293.37°)
OKLaboklab(41.73% -0.019 -0.1654)
OKLCHoklch(41.73% 0.167 263.5)
XYZxyz(9.1140, 6.8061, 36.4234)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1842A5 #A57B18
analogous
#1888A5 #1842A5 #3518A5
triadic
#1842A5 #A51842 #42A518
tetradic
#1842A5 #A51888 #A57B18 #18A535
square
#1842A5 #A51888 #A57B18 #18A535
split-complementary
#1842A5 #A53518 #88A518
monochromatic
#08173A #102D70 #1842A5 #2057DA #527EE6

Accessibility & contrast

On white

8.89
#1842A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1842A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1842A5
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1842A5#FFFFFF#000000##FFFFFF
##1842A51.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1842a5;
/* rgb */ color: rgb(24, 66, 165);
/* oklch */ color: oklch(41.7% 0.167 263.5);
Tailwind
colors: {
  custom: {
    50: '#7075c1',
    500: '#1842a5',
    950: '#000000',
  },
}
SCSS
$custom: #1842a5;
$custom-light: #7075c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1842a5",
  "rgb": {
    "r": 24,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 222.128,
    "s": 74.603,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.16651,
    "h": 263.5
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#1842A5
secondary
#C8A551
accent
#BA37F1
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1842A5

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

Preview Lab → · Contrast checker → · Palette generator →

#1842A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva