#242872#242872

#242872 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.125 H 274.6°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#242872
RGBrgb(36, 40, 114)
HSLhsl(237, 52%, 29%)
HSVhsv(237, 68%, 45%)
CMYKcmyk(68.4%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.47, 23.99, -43.27)
CIE-LCHlch(20.47, 49.48, 299.01°)
OKLaboklab(32.41% 0.0101 -0.1247)
OKLCHoklch(32.41% 0.125 274.6)
XYZxyz(4.5226, 3.1072, 16.2777)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242872 #726E24
analogous
#244F72 #242872 #472472
triadic
#242872 #722428 #287224
tetradic
#242872 #72244F #726E24 #247247
square
#242872 #72244F #726E24 #247247
split-complementary
#242872 #724724 #4F7224
monochromatic
#070817 #151843 #242872 #3338A1 #4A51C6

Accessibility & contrast

On white

12.95
#242872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#242872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242872
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242872#FFFFFF#000000##FFFFFF
##2428721.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #242872;
/* rgb */ color: rgb(36, 40, 114);
/* oklch */ color: oklch(32.4% 0.125 274.6);
Tailwind
colors: {
  custom: {
    50: '#69629b',
    500: '#242872',
    950: '#000000',
  },
}
SCSS
$custom: #242872;
$custom-light: #69629b;
$custom-dark: #000000;
JSON
{
  "hex": "#242872",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 236.923,
    "s": 52,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32407,
    "c": 0.12512,
    "h": 274.6
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#242872
secondary
#A5A04D
accent
#D44CDB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #242872

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

Preview Lab → · Contrast checker → · Palette generator →

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