#242097#242097

#242097 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.183 H 273.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#242097
RGBrgb(36, 32, 151)
HSLhsl(242, 65%, 36%)
HSVhsv(242, 79%, 59%)
CMYKcmyk(76.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(22.45, 42.12, -63.29)
CIE-LCHlch(22.45, 76.03, 303.65°)
OKLaboklab(34.97% 0.0095 -0.1831)
OKLCHoklch(34.97% 0.183 273)
XYZxyz(6.8281, 3.6417, 29.6152)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242097 #939720
analogous
#205797 #242097 #5F2097
triadic
#242097 #972420 #209724
tetradic
#242097 #972057 #939720 #20975F
square
#242097 #972057 #939720 #20975F
split-complementary
#242097 #975F20 #579720
monochromatic
#0C0B32 #181564 #242097 #302BC9 #5B56DB

Accessibility & contrast

On white

12.15
#242097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#242097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242097
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242097#FFFFFF#000000##FFFFFF
##2420971.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242097;
/* rgb */ color: rgb(36, 32, 151);
/* oklch */ color: oklch(35.0% 0.183 273.0);
Tailwind
colors: {
  custom: {
    50: '#735eb7',
    500: '#242097',
    950: '#000000',
  },
}
SCSS
$custom: #242097;
$custom-light: #735eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#242097",
  "rgb": {
    "r": 36,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 242.017,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.1834,
    "h": 273
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#242097
secondary
#BBBF54
accent
#E840E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #242097

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

Preview Lab → · Contrast checker → · Palette generator →

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