#1845A8#1845A8

#1845A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.167 H 262.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#1845A8
RGBrgb(24, 69, 168)
HSLhsl(221, 75%, 38%)
HSVhsv(221, 86%, 66%)
CMYKcmyk(85.7%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.43, 23.87, -57.24)
CIE-LCHlch(32.43, 62.02, 292.64°)
OKLaboklab(42.61% -0.0206 -0.1655)
OKLCHoklch(42.61% 0.167 262.9)
XYZxyz(9.5702, 7.2764, 37.9383)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1845A8 #A87B18
analogous
#188DA8 #1845A8 #3318A8
triadic
#1845A8 #A81845 #45A818
tetradic
#1845A8 #A8188D #A87B18 #18A833
square
#1845A8 #A8188D #A87B18 #18A833
split-complementary
#1845A8 #A83318 #8DA818
monochromatic
#09193D #102F72 #1845A8 #205BDE #5482E7

Accessibility & contrast

On white

8.55
#1845A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1845A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1845A8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1845A8#FFFFFF#000000##FFFFFF
##1845A81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1845a8;
/* rgb */ color: rgb(24, 69, 168);
/* oklch */ color: oklch(42.6% 0.167 262.9);
Tailwind
colors: {
  custom: {
    50: '#7178c3',
    500: '#1845a8',
    950: '#000000',
  },
}
SCSS
$custom: #1845a8;
$custom-light: #7178c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1845a8",
  "rgb": {
    "r": 24,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 221.25,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.16681,
    "h": 262.9
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#1845A8
secondary
#C9A453
accent
#B736F2
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1845A8

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

Preview Lab → · Contrast checker → · Palette generator →

#1845A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva