#242979#242979

#242979 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.134 H 273.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#242979
RGBrgb(36, 41, 121)
HSLhsl(236, 54%, 31%)
HSVhsv(236, 70%, 47%)
CMYKcmyk(70.2%, 66.1%, 0%, 52.5%)
CIE-LABlab(21.36, 25.94, -46.29)
CIE-LCHlch(21.36, 53.07, 299.26°)
OKLaboklab(33.26% 0.0088 -0.1336)
OKLCHoklch(33.26% 0.134 273.8)
XYZxyz(4.9705, 3.3410, 18.4684)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242979 #797424
analogous
#245379 #242979 #492479
triadic
#242979 #792429 #297924
tetradic
#242979 #792453 #797424 #247949
square
#242979 #792453 #797424 #247949
split-complementary
#242979 #794924 #537924
monochromatic
#08091B #16194A #242979 #3239A8 #4D55CA

Accessibility & contrast

On white

12.59
#242979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#242979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242979
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242979#FFFFFF#000000##FFFFFF
##2429791.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #242979;
/* rgb */ color: rgb(36, 41, 121);
/* oklch */ color: oklch(33.3% 0.134 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b63a0',
    500: '#242979',
    950: '#000000',
  },
}
SCSS
$custom: #242979;
$custom-light: #6b63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242979",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 236.471,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.13387,
    "h": 273.8
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#242979
secondary
#ACA64D
accent
#D54ADE
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #242979

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

Preview Lab → · Contrast checker → · Palette generator →

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