#242978#242978

#242978 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.132 H 273.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#242978
RGBrgb(36, 41, 120)
HSLhsl(236, 54%, 31%)
HSVhsv(236, 70%, 47%)
CMYKcmyk(70%, 65.8%, 0%, 52.9%)
CIE-LABlab(21.27, 25.56, -45.81)
CIE-LCHlch(21.27, 52.46, 299.17°)
OKLaboklab(33.16% 0.0089 -0.1321)
OKLCHoklch(33.16% 0.132 273.8)
XYZxyz(4.9095, 3.3166, 18.1471)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242978 #787324
analogous
#245378 #242978 #492478
triadic
#242978 #782429 #297824
tetradic
#242978 #782453 #787324 #247849
square
#242978 #782453 #787324 #247849
split-complementary
#242978 #784924 #537824
monochromatic
#08091A #161949 #242978 #3239A7 #4D54CA

Accessibility & contrast

On white

12.62
#242978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#242978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242978
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242978#FFFFFF#000000##FFFFFF
##2429781.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #242978;
/* rgb */ color: rgb(36, 41, 120);
/* oklch */ color: oklch(33.2% 0.132 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b63a0',
    500: '#242978',
    950: '#000000',
  },
}
SCSS
$custom: #242978;
$custom-light: #6b63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242978",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 236.429,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33163,
    "c": 0.13244,
    "h": 273.8
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#242978
secondary
#ABA54D
accent
#D44BDD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #242978

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

Preview Lab → · Contrast checker → · Palette generator →

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