#242B79#242B79

#242B79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.131 H 273.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#242B79
RGBrgb(36, 43, 121)
HSLhsl(235, 54%, 31%)
HSVhsv(235, 70%, 47%)
CMYKcmyk(70.2%, 64.5%, 0%, 52.5%)
CIE-LABlab(21.88, 24.58, -45.44)
CIE-LCHlch(21.88, 51.66, 298.41°)
OKLaboklab(33.64% 0.0071 -0.1311)
OKLCHoklch(33.64% 0.131 273.1)
XYZxyz(5.0415, 3.4828, 18.4920)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242B79 #797224
analogous
#245579 #242B79 #472479
triadic
#242B79 #79242B #2B7924
tetradic
#242B79 #792455 #797224 #247947
square
#242B79 #792455 #797224 #247947
split-complementary
#242B79 #794724 #557924
monochromatic
#08091B #161A4A #242B79 #323CA8 #4D58CA

Accessibility & contrast

On white

12.38
#242B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#242B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242B79
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242B79#FFFFFF#000000##FFFFFF
##242B791.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #242b79;
/* rgb */ color: rgb(36, 43, 121);
/* oklch */ color: oklch(33.6% 0.131 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b64a0',
    500: '#242b79',
    950: '#000000',
  },
}
SCSS
$custom: #242b79;
$custom-light: #6b64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242b79",
  "rgb": {
    "r": 36,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 235.059,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.13125,
    "h": 273.1
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#242B79
secondary
#ACA44D
accent
#D14ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #242B79

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

Preview Lab → · Contrast checker → · Palette generator →

#242B79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva