#242079#242079

#242079 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.145 H 276.2°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#242079
RGBrgb(36, 32, 121)
HSLhsl(243, 58%, 30%)
HSVhsv(243, 74%, 47%)
CMYKcmyk(70.2%, 73.6%, 0%, 52.5%)
CIE-LABlab(19.17, 31.83, -49.88)
CIE-LCHlch(19.17, 59.17, 302.54°)
OKLaboklab(31.67% 0.0156 -0.1441)
OKLCHoklch(31.67% 0.145 276.2)
XYZxyz(4.6941, 2.7881, 18.3762)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242079 #757920
analogous
#204879 #242079 #512079
triadic
#242079 #792420 #207924
tetradic
#242079 #792048 #757920 #207951
square
#242079 #792048 #757920 #207951
split-complementary
#242079 #795120 #487920
monochromatic
#070618 #161349 #242079 #322DA9 #4C45CE

Accessibility & contrast

On white

13.48
#242079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#242079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242079
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242079#FFFFFF#000000##FFFFFF
##2420791.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #242079;
/* rgb */ color: rgb(36, 32, 121);
/* oklch */ color: oklch(31.7% 0.145 276.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ca1',
    500: '#242079',
    950: '#000000',
  },
}
SCSS
$custom: #242079;
$custom-light: #6c5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#242079",
  "rgb": {
    "r": 36,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 242.697,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.31674,
    "c": 0.14493,
    "h": 276.2
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#242079
secondary
#A8AC49
accent
#E146DA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #242079

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

Preview Lab → · Contrast checker → · Palette generator →

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