#242971#242971

#242971 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.122 H 274.3°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#242971
RGBrgb(36, 41, 113)
HSLhsl(236, 52%, 29%)
HSVhsv(236, 68%, 44%)
CMYKcmyk(68.1%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.65, 22.93, -42.34)
CIE-LCHlch(20.65, 48.15, 298.44°)
OKLaboklab(32.51% 0.0092 -0.122)
OKLCHoklch(32.51% 0.122 274.3)
XYZxyz(4.5001, 3.1528, 15.9910)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242971 #716C24
analogous
#245071 #242971 #462471
triadic
#242971 #712429 #297124
tetradic
#242971 #712450 #716C24 #247146
square
#242971 #712450 #716C24 #247146
split-complementary
#242971 #714624 #507124
monochromatic
#070817 #151843 #242971 #333A9F #4A52C5

Accessibility & contrast

On white

12.88
#242971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#242971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242971
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242971#FFFFFF#000000##FFFFFF
##2429711.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242971;
/* rgb */ color: rgb(36, 41, 113);
/* oklch */ color: oklch(32.5% 0.122 274.3);
Tailwind
colors: {
  custom: {
    50: '#69629a',
    500: '#242971',
    950: '#000000',
  },
}
SCSS
$custom: #242971;
$custom-light: #69629a;
$custom-dark: #000000;
JSON
{
  "hex": "#242971",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 236.104,
    "s": 51.678,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3251,
    "c": 0.12231,
    "h": 274.3
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#242971
secondary
#A49E4D
accent
#D24DDB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #242971

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

Preview Lab → · Contrast checker → · Palette generator →

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