#1840A5#1840A5

#1840A5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.169 H 263.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1840A5
RGBrgb(24, 64, 165)
HSLhsl(223, 75%, 37%)
HSVhsv(223, 85%, 65%)
CMYKcmyk(85.5%, 61.2%, 0%, 35.3%)
CIE-LABlab(30.82, 26.07, -58.06)
CIE-LCHlch(30.82, 63.64, 294.18°)
OKLaboklab(41.33% -0.0179 -0.168)
OKLCHoklch(41.33% 0.169 263.9)
XYZxyz(8.9992, 6.5765, 36.3851)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1840A5 #A57D18
analogous
#1886A5 #1840A5 #3718A5
triadic
#1840A5 #A51840 #40A518
tetradic
#1840A5 #A51886 #A57D18 #18A537
square
#1840A5 #A51886 #A57D18 #18A537
split-complementary
#1840A5 #A53718 #86A518
monochromatic
#08173A #102B70 #1840A5 #2055DA #527CE6

Accessibility & contrast

On white

9.07
#1840A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1840A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1840A5
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1840A5#FFFFFF#000000##FFFFFF
##1840A51.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1840a5;
/* rgb */ color: rgb(24, 64, 165);
/* oklch */ color: oklch(41.3% 0.169 263.9);
Tailwind
colors: {
  custom: {
    50: '#7074c1',
    500: '#1840a5',
    950: '#000000',
  },
}
SCSS
$custom: #1840a5;
$custom-light: #7074c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1840a5",
  "rgb": {
    "r": 24,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 222.979,
    "s": 74.603,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.16898,
    "h": 263.9
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#1840A5
secondary
#C8A651
accent
#BC37F1
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1840A5

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

Preview Lab → · Contrast checker → · Palette generator →

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