#242240#242240

#242240 is a dark, muted blue. Relative luminance 0.019; OKLCH L 27.0% C 0.055 H 285.1°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#242240
RGBrgb(36, 34, 64)
HSLhsl(244, 31%, 19%)
HSVhsv(244, 47%, 25%)
CMYKcmyk(43.8%, 46.9%, 0%, 74.9%)
CIE-LABlab(14.89, 9.86, -18.81)
CIE-LCHlch(14.89, 21.24, 297.66°)
OKLaboklab(27.02% 0.0143 -0.0529)
OKLCHoklch(27.02% 0.055 285.1)
XYZxyz(2.2247, 1.8892, 5.0969)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242240 #3E4022
analogous
#222F40 #242240 #332240
triadic
#242240 #402422 #224024
tetradic
#242240 #40222F #3E4022 #224033
square
#242240 #40222F #3E4022 #224033
split-complementary
#242240 #403322 #2F4022
monochromatic
#0B0B14 #0E0D18 #242240 #3A3768 #514C90

Accessibility & contrast

On white

15.24
#242240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#242240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242240
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242240#FFFFFF#000000##FFFFFF
##2422401.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182641
Deuteranopia (green-blind)
#17253F
Tritanopia (blue-blind)
#1C282D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #242240;
/* rgb */ color: rgb(36, 34, 64);
/* oklch */ color: oklch(27.0% 0.055 285.1);
Tailwind
colors: {
  custom: {
    50: '#605c75',
    500: '#242240',
    950: '#000000',
  },
}
SCSS
$custom: #242240;
$custom-light: #605c75;
$custom-dark: #000000;
JSON
{
  "hex": "#242240",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 244,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27017,
    "c": 0.05484,
    "h": 285.1
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#242240
secondary
#71734B
accent
#C761C0
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #242240

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

Preview Lab → · Contrast checker → · Palette generator →

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