#182874#182874

#182874 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.131 H 268.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#182874
RGBrgb(24, 40, 116)
HSLhsl(230, 66%, 27%)
HSVhsv(230, 79%, 45%)
CMYKcmyk(79.3%, 65.5%, 0%, 54.5%)
CIE-LABlab(19.93, 23.10, -45.46)
CIE-LCHlch(19.93, 50.99, 296.93°)
OKLaboklab(31.88% -0.0036 -0.1314)
OKLCHoklch(31.88% 0.131 268.4)
XYZxyz(4.2868, 2.9723, 16.8674)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182874 #746418
analogous
#185674 #182874 #361874
triadic
#182874 #741828 #287418
tetradic
#182874 #741856 #746418 #187436
square
#182874 #741856 #746418 #187436
split-complementary
#182874 #743618 #567418
monochromatic
#050919 #0E1741 #182874 #2239A7 #324ED5

Accessibility & contrast

On white

13.17
#182874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#182874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182874
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182874#FFFFFF#000000##FFFFFF
##1828741.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #182874;
/* rgb */ color: rgb(24, 40, 116);
/* oklch */ color: oklch(31.9% 0.131 268.4);
Tailwind
colors: {
  custom: {
    50: '#65619d',
    500: '#182874',
    950: '#000000',
  },
}
SCSS
$custom: #182874;
$custom-light: #65619d;
$custom-dark: #000000;
JSON
{
  "hex": "#182874",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 229.565,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31876,
    "c": 0.13149,
    "h": 268.4
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#182874
secondary
#A9973F
accent
#CB3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #182874

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

Preview Lab → · Contrast checker → · Palette generator →

#182874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva