#242178#242178

#242178 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.142 H 276.1°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#242178
RGBrgb(36, 33, 120)
HSLhsl(242, 57%, 30%)
HSVhsv(242, 73%, 47%)
CMYKcmyk(70%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.30, 30.85, -49.03)
CIE-LCHlch(19.30, 57.93, 302.17°)
OKLaboklab(31.73% 0.0151 -0.1416)
OKLCHoklch(31.73% 0.142 276.1)
XYZxyz(4.6605, 2.8184, 18.0641)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242178 #757821
analogous
#214978 #242178 #502178
triadic
#242178 #782421 #217824
tetradic
#242178 #782149 #757821 #217850
square
#242178 #782149 #757821 #217850
split-complementary
#242178 #785021 #497821
monochromatic
#070718 #161448 #242178 #322EA8 #4C47CC

Accessibility & contrast

On white

13.43
#242178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#242178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242178
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242178#FFFFFF#000000##FFFFFF
##2421781.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #242178;
/* rgb */ color: rgb(36, 33, 120);
/* oklch */ color: oklch(31.7% 0.142 276.1);
Tailwind
colors: {
  custom: {
    50: '#6b5da0',
    500: '#242178',
    950: '#000000',
  },
}
SCSS
$custom: #242178;
$custom-light: #6b5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#242178",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 242.069,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31734,
    "c": 0.14241,
    "h": 276.1
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#242178
secondary
#A8AB4A
accent
#E048DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #242178

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

Preview Lab → · Contrast checker → · Palette generator →

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