#242E79#242E79

#242E79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.127 H 272.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#242E79
RGBrgb(36, 46, 121)
HSLhsl(233, 54%, 31%)
HSVhsv(233, 70%, 47%)
CMYKcmyk(70.2%, 62%, 0%, 52.5%)
CIE-LABlab(22.69, 22.51, -44.13)
CIE-LCHlch(22.69, 49.54, 297.02°)
OKLaboklab(34.23% 0.0045 -0.1272)
OKLCHoklch(34.23% 0.127 272)
XYZxyz(5.1546, 3.7091, 18.5297)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E79 #796F24
analogous
#245879 #242E79 #442479
triadic
#242E79 #79242E #2E7924
tetradic
#242E79 #792458 #796F24 #247944
square
#242E79 #792458 #796F24 #247944
split-complementary
#242E79 #794424 #587924
monochromatic
#080A1B #161C4A #242E79 #3240A8 #4D5CCA

Accessibility & contrast

On white

12.06
#242E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E79
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E79#FFFFFF#000000##FFFFFF
##242E791.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242e79;
/* rgb */ color: rgb(36, 46, 121);
/* oklch */ color: oklch(34.2% 0.127 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a66a0',
    500: '#242e79',
    950: '#000000',
  },
}
SCSS
$custom: #242e79;
$custom-light: #6a66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#242e79",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 232.941,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.12727,
    "h": 272
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#242E79
secondary
#ACA04D
accent
#CC4ADE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #242E79

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

Preview Lab → · Contrast checker → · Palette generator →

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