#242452#242452

#242452 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.082 H 280.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#242452
RGBrgb(36, 36, 82)
HSLhsl(240, 39%, 23%)
HSVhsv(240, 56%, 32%)
CMYKcmyk(56.1%, 56.1%, 0%, 67.8%)
CIE-LABlab(16.73, 14.83, -28.25)
CIE-LCHlch(16.73, 31.90, 297.70°)
OKLaboklab(28.8% 0.0141 -0.0806)
OKLCHoklch(28.8% 0.082 280)
XYZxyz(2.8810, 2.2459, 8.2627)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242452 #525224
analogous
#243B52 #242452 #3B2452
triadic
#242452 #522424 #245224
tetradic
#242452 #52243B #525224 #24523B
square
#242452 #52243B #525224 #24523B
split-complementary
#242452 #523B24 #3B5224
monochromatic
#090915 #111127 #242452 #37377D #4949A7

Accessibility & contrast

On white

14.49
#242452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#242452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242452
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242452#FFFFFF#000000##FFFFFF
##2424521.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#082851
Tritanopia (blue-blind)
#112E37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #242452;
/* rgb */ color: rgb(36, 36, 82);
/* oklch */ color: oklch(28.8% 0.082 280.0);
Tailwind
colors: {
  custom: {
    50: '#635e83',
    500: '#242452',
    950: '#000000',
  },
}
SCSS
$custom: #242452;
$custom-light: #635e83;
$custom-dark: #000000;
JSON
{
  "hex": "#242452",
  "rgb": {
    "r": 36,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.288,
    "c": 0.0818,
    "h": 280
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#242452
secondary
#86864C
accent
#CF59CF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040A
muted
#7A797C

Preview Lab

Preview with #242452

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

Preview Lab → · Contrast checker → · Palette generator →

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