#242997#242997

#242997 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.174 H 271.8°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#242997
RGBrgb(36, 41, 151)
HSLhsl(237, 61%, 37%)
HSVhsv(237, 76%, 59%)
CMYKcmyk(76.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.30, 36.89, -60.23)
CIE-LCHlch(24.30, 70.63, 301.49°)
OKLaboklab(36.29% 0.0054 -0.1743)
OKLCHoklch(36.29% 0.174 271.8)
XYZxyz(7.1045, 4.1946, 29.7074)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242997 #979224
analogous
#246397 #242997 #592497
triadic
#242997 #972429 #299724
tetradic
#242997 #972463 #979224 #249759
square
#242997 #972463 #979224 #249759
split-complementary
#242997 #975924 #639724
monochromatic
#0C0E34 #181C66 #242997 #3036C8 #5D62D8

Accessibility & contrast

On white

11.42
#242997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#242997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242997
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242997#FFFFFF#000000##FFFFFF
##2429971.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242997;
/* rgb */ color: rgb(36, 41, 151);
/* oklch */ color: oklch(36.3% 0.174 271.8);
Tailwind
colors: {
  custom: {
    50: '#7264b7',
    500: '#242997',
    950: '#000000',
  },
}
SCSS
$custom: #242997;
$custom-light: #7264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242997",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 237.391,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36285,
    "c": 0.17439,
    "h": 271.8
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#242997
secondary
#BDB95A
accent
#DE43E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #242997

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

Preview Lab → · Contrast checker → · Palette generator →

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