#1842A7#1842A7

#1842A7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.169 H 263.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#1842A7
RGBrgb(24, 66, 167)
HSLhsl(222, 75%, 37%)
HSVhsv(222, 86%, 65%)
CMYKcmyk(85.6%, 60.5%, 0%, 34.5%)
CIE-LABlab(31.53, 25.51, -58.10)
CIE-LCHlch(31.53, 63.45, 293.70°)
OKLaboklab(41.91% -0.0189 -0.1681)
OKLCHoklch(41.91% 0.169 263.6)
XYZxyz(9.2975, 6.8795, 37.3896)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1842A7 #A77D18
analogous
#1889A7 #1842A7 #3618A7
triadic
#1842A7 #A71842 #42A718
tetradic
#1842A7 #A71889 #A77D18 #18A736
square
#1842A7 #A71889 #A77D18 #18A736
split-complementary
#1842A7 #A73618 #89A718
monochromatic
#09183C #102D71 #1842A7 #2057DD #537EE6

Accessibility & contrast

On white

8.84
#1842A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1842A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1842A7
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1842A7#FFFFFF#000000##FFFFFF
##1842A71.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1842a7;
/* rgb */ color: rgb(24, 66, 167);
/* oklch */ color: oklch(41.9% 0.169 263.6);
Tailwind
colors: {
  custom: {
    50: '#7175c2',
    500: '#1842a7',
    950: '#000000',
  },
}
SCSS
$custom: #1842a7;
$custom-light: #7175c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1842a7",
  "rgb": {
    "r": 24,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 222.378,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41909,
    "c": 0.16919,
    "h": 263.6
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#1842A7
secondary
#C9A652
accent
#BB36F1
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1842A7

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

Preview Lab → · Contrast checker → · Palette generator →

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