#1840A7#1840A7

#1840A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.172 H 264.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#1840A7
RGBrgb(24, 64, 167)
HSLhsl(223, 75%, 37%)
HSVhsv(223, 86%, 65%)
CMYKcmyk(85.6%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.00, 26.86, -58.98)
CIE-LCHlch(31.00, 64.81, 294.48°)
OKLaboklab(41.51% -0.0178 -0.1707)
OKLCHoklch(41.51% 0.172 264)
XYZxyz(9.1826, 6.6499, 37.3513)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1840A7 #A77F18
analogous
#1887A7 #1840A7 #3818A7
triadic
#1840A7 #A71840 #40A718
tetradic
#1840A7 #A71887 #A77F18 #18A738
square
#1840A7 #A71887 #A77F18 #18A738
split-complementary
#1840A7 #A73818 #87A718
monochromatic
#09173C #102B71 #1840A7 #2055DD #537CE6

Accessibility & contrast

On white

9.01
#1840A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1840A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1840A7
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1840A7#FFFFFF#000000##FFFFFF
##1840A71.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1840a7;
/* rgb */ color: rgb(24, 64, 167);
/* oklch */ color: oklch(41.5% 0.172 264.0);
Tailwind
colors: {
  custom: {
    50: '#7174c2',
    500: '#1840a7',
    950: '#000000',
  },
}
SCSS
$custom: #1840a7;
$custom-light: #7174c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1840a7",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 223.217,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4151,
    "c": 0.17165,
    "h": 264
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#1840A7
secondary
#C9A852
accent
#BD36F1
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1840A7

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

Preview Lab → · Contrast checker → · Palette generator →

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