#241878#241878

#241878 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.152 H 277.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#241878
RGBrgb(36, 24, 120)
HSLhsl(248, 67%, 28%)
HSVhsv(248, 80%, 47%)
CMYKcmyk(70%, 80%, 0%, 52.9%)
CIE-LABlab(17.39, 36.22, -52.19)
CIE-LCHlch(17.39, 63.52, 304.76°)
OKLaboklab(30.37% 0.0209 -0.1508)
OKLCHoklch(30.37% 0.152 277.9)
XYZxyz(4.4433, 2.3840, 17.9917)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241878 #6C7818
analogous
#183C78 #241878 #541878
triadic
#241878 #782418 #187824
tetradic
#241878 #78183C #6C7818 #187854
square
#241878 #78183C #6C7818 #187854
split-complementary
#241878 #785418 #3C7818
monochromatic
#08051A #150E45 #241878 #3322AB #4834D6

Accessibility & contrast

On white

14.22
#241878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#241878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241878
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241878#FFFFFF#000000##FFFFFF
##2418781.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #241878;
/* rgb */ color: rgb(36, 24, 120);
/* oklch */ color: oklch(30.4% 0.152 277.9);
Tailwind
colors: {
  custom: {
    50: '#6c57a0',
    500: '#241878',
    950: '#000000',
  },
}
SCSS
$custom: #241878;
$custom-light: #6c57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#241878",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.1522,
    "h": 277.9
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#241878
secondary
#9FAD3F
accent
#EA3ED4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #241878

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

Preview Lab → · Contrast checker → · Palette generator →

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