#1840A0#1840A0

#1840A0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.162 H 263.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#1840A0
RGBrgb(24, 64, 160)
HSLhsl(222, 74%, 36%)
HSVhsv(222, 85%, 63%)
CMYKcmyk(85%, 60%, 0%, 37.3%)
CIE-LABlab(30.40, 24.08, -55.74)
CIE-LCHlch(30.40, 60.72, 293.36°)
OKLaboklab(40.87% -0.018 -0.1612)
OKLCHoklch(40.87% 0.162 263.6)
XYZxyz(8.5530, 6.3980, 34.0350)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1840A0 #A07818
analogous
#1884A0 #1840A0 #3418A0
triadic
#1840A0 #A01840 #40A018
tetradic
#1840A0 #A01884 #A07818 #18A034
square
#1840A0 #A01884 #A07818 #18A034
split-complementary
#1840A0 #A03418 #84A018
monochromatic
#081536 #102B6B #1840A0 #2055D5 #4E7AE4

Accessibility & contrast

On white

9.21
#1840A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1840A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1840A0
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1840A0#FFFFFF#000000##FFFFFF
##1840A01.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1840a0;
/* rgb */ color: rgb(24, 64, 160);
/* oklch */ color: oklch(40.9% 0.162 263.6);
Tailwind
colors: {
  custom: {
    50: '#6f74bd',
    500: '#1840a0',
    950: '#000000',
  },
}
SCSS
$custom: #1840a0;
$custom-light: #6f74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1840a0",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 222.353,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40874,
    "c": 0.16225,
    "h": 263.6
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#1840A0
secondary
#C6A34D
accent
#BA37F1
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1840A0

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

Preview Lab → · Contrast checker → · Palette generator →

#1840A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva