#242874#242874

#242874 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.128 H 274.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#242874
RGBrgb(36, 40, 116)
HSLhsl(237, 53%, 30%)
HSVhsv(237, 69%, 45%)
CMYKcmyk(69%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.65, 24.75, -44.26)
CIE-LCHlch(20.65, 50.71, 299.21°)
OKLaboklab(32.59% 0.01 -0.1276)
OKLCHoklch(32.59% 0.128 274.5)
XYZxyz(4.6377, 3.1532, 16.8838)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242874 #747024
analogous
#245074 #242874 #482474
triadic
#242874 #742428 #287424
tetradic
#242874 #742450 #747024 #247448
square
#242874 #742450 #747024 #247448
split-complementary
#242874 #744824 #507424
monochromatic
#070817 #161845 #242874 #3238A3 #4B51C7

Accessibility & contrast

On white

12.88
#242874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#242874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242874
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242874#FFFFFF#000000##FFFFFF
##2428741.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242874;
/* rgb */ color: rgb(36, 40, 116);
/* oklch */ color: oklch(32.6% 0.128 274.5);
Tailwind
colors: {
  custom: {
    50: '#6a629d',
    500: '#242874',
    950: '#000000',
  },
}
SCSS
$custom: #242874;
$custom-light: #6a629d;
$custom-dark: #000000;
JSON
{
  "hex": "#242874",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 237,
    "s": 52.632,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32594,
    "c": 0.12802,
    "h": 274.5
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#242874
secondary
#A7A24D
accent
#D54CDC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #242874

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

Preview Lab → · Contrast checker → · Palette generator →

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