#242797#242797

#242797 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.177 H 272.1°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#242797
RGBrgb(36, 39, 151)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 76%, 59%)
CMYKcmyk(76.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.87, 38.11, -60.95)
CIE-LCHlch(23.87, 71.88, 302.02°)
OKLaboklab(35.97% 0.0064 -0.1764)
OKLCHoklch(35.97% 0.177 272.1)
XYZxyz(7.0371, 4.0597, 29.6849)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242797 #979424
analogous
#246197 #242797 #5B2497
triadic
#242797 #972427 #279724
tetradic
#242797 #972461 #979424 #24975B
square
#242797 #972461 #979424 #24975B
split-complementary
#242797 #975B24 #619724
monochromatic
#0C0D34 #181A66 #242797 #3034C8 #5D60D8

Accessibility & contrast

On white

11.59
#242797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#242797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242797
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242797#FFFFFF#000000##FFFFFF
##2427971.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242797;
/* rgb */ color: rgb(36, 39, 151);
/* oklch */ color: oklch(36.0% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#7362b7',
    500: '#242797',
    950: '#000000',
  },
}
SCSS
$custom: #242797;
$custom-light: #7362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242797",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 238.435,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35973,
    "c": 0.17651,
    "h": 272.1
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#242797
secondary
#BDBB5A
accent
#E043E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242797

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

Preview Lab → · Contrast checker → · Palette generator →

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