#1845B4#1845B4

#1845B4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.183 H 263.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#1845B4
RGBrgb(24, 69, 180)
HSLhsl(223, 76%, 40%)
HSVhsv(223, 87%, 71%)
CMYKcmyk(86.7%, 61.7%, 0%, 29.4%)
CIE-LABlab(33.44, 28.60, -62.73)
CIE-LCHlch(33.44, 68.94, 294.51°)
OKLaboklab(43.68% -0.0201 -0.1816)
OKLCHoklch(43.68% 0.183 263.7)
XYZxyz(10.7401, 7.7444, 44.0999)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1845B4 #B48718
analogous
#1893B4 #1845B4 #3918B4
triadic
#1845B4 #B41845 #45B418
tetradic
#1845B4 #B41893 #B48718 #18B439
square
#1845B4 #B41893 #B48718 #18B439
split-complementary
#1845B4 #B43918 #93B418
monochromatic
#0A1C48 #11307E #1845B4 #275DE2 #5D86E9

Accessibility & contrast

On white

8.24
#1845B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1845B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1845B4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1845B4#FFFFFF#000000##FFFFFF
##1845B41.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1845b4;
/* rgb */ color: rgb(24, 69, 180);
/* oklch */ color: oklch(43.7% 0.183 263.7);
Tailwind
colors: {
  custom: {
    50: '#7478cb',
    500: '#1845b4',
    950: '#000000',
  },
}
SCSS
$custom: #1845b4;
$custom-light: #7478cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1845b4",
  "rgb": {
    "r": 24,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 222.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.43683,
    "c": 0.18274,
    "h": 263.7
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#1845B4
secondary
#CDAC5B
accent
#BC35F3
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1845B4

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

Preview Lab → · Contrast checker → · Palette generator →

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