#181875#181875

#181875 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.152 H 271.9°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#181875
RGBrgb(24, 24, 117)
HSLhsl(240, 66%, 28%)
HSVhsv(240, 79%, 46%)
CMYKcmyk(79.5%, 79.5%, 0%, 54.1%)
CIE-LABlab(16.16, 34.02, -52.31)
CIE-LCHlch(16.16, 62.40, 303.04°)
OKLaboklab(29.18% 0.0051 -0.1514)
OKLCHoklch(29.18% 0.152 271.9)
XYZxyz(3.9131, 2.1314, 17.0313)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181875 #757518
analogous
#184675 #181875 #461875
triadic
#181875 #751818 #187518
tetradic
#181875 #751846 #757518 #187546
square
#181875 #751846 #757518 #187546
split-complementary
#181875 #754618 #467518
monochromatic
#050519 #0E0E42 #181875 #2222A8 #3232D5

Accessibility & contrast

On white

14.72
#181875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181875
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181875#FFFFFF#000000##FFFFFF
##1818751.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181875;
/* rgb */ color: rgb(24, 24, 117);
/* oklch */ color: oklch(29.2% 0.152 271.9);
Tailwind
colors: {
  custom: {
    50: '#67569e',
    500: '#181875',
    950: '#000000',
  },
}
SCSS
$custom: #181875;
$custom-light: #67569e;
$custom-dark: #000000;
JSON
{
  "hex": "#181875",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 240,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29182,
    "c": 0.15151,
    "h": 271.9
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

primary
#181875
secondary
#AAAA3F
accent
#E93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181875

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

Preview Lab → · Contrast checker → · Palette generator →

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