#1840A1#1840A1

#1840A1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.164 H 263.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1840A1
RGBrgb(24, 64, 161)
HSLhsl(222, 74%, 36%)
HSVhsv(222, 85%, 63%)
CMYKcmyk(85.1%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.48, 24.48, -56.21)
CIE-LCHlch(30.48, 61.31, 293.53°)
OKLaboklab(40.96% -0.018 -0.1626)
OKLCHoklch(40.96% 0.164 263.7)
XYZxyz(8.6408, 6.4331, 34.4976)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1840A1 #A17918
analogous
#1885A1 #1840A1 #3518A1
triadic
#1840A1 #A11840 #40A118
tetradic
#1840A1 #A11885 #A17918 #18A135
square
#1840A1 #A11885 #A17918 #18A135
split-complementary
#1840A1 #A13518 #85A118
monochromatic
#081636 #102B6C #1840A1 #2055D6 #4F7AE5

Accessibility & contrast

On white

9.18
#1840A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1840A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1840A1
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1840A1#FFFFFF#000000##FFFFFF
##1840A11.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1840a1;
/* rgb */ color: rgb(24, 64, 161);
/* oklch */ color: oklch(41.0% 0.164 263.7);
Tailwind
colors: {
  custom: {
    50: '#6f74be',
    500: '#1840a1',
    950: '#000000',
  },
}
SCSS
$custom: #1840a1;
$custom-light: #6f74be;
$custom-dark: #000000;
JSON
{
  "hex": "#1840a1",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 222.482,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40964,
    "c": 0.16359,
    "h": 263.7
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#1840A1
secondary
#C7A44E
accent
#BB37F1
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1840A1

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

Preview Lab → · Contrast checker → · Palette generator →

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