#242897#242897

#242897 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.175 H 271.9°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#242897
RGBrgb(36, 40, 151)
HSLhsl(238, 61%, 37%)
HSVhsv(238, 76%, 59%)
CMYKcmyk(76.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.08, 37.50, -60.59)
CIE-LCHlch(24.08, 71.26, 301.76°)
OKLaboklab(36.13% 0.0059 -0.1754)
OKLCHoklch(36.13% 0.175 271.9)
XYZxyz(7.0704, 4.1263, 29.6960)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242897 #979324
analogous
#246297 #242897 #5A2497
triadic
#242897 #972428 #289724
tetradic
#242897 #972462 #979324 #24975A
square
#242897 #972462 #979324 #24975A
split-complementary
#242897 #975A24 #629724
monochromatic
#0C0E34 #181B66 #242897 #3035C8 #5D61D8

Accessibility & contrast

On white

11.50
#242897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#242897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242897
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242897#FFFFFF#000000##FFFFFF
##2428971.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242897;
/* rgb */ color: rgb(36, 40, 151);
/* oklch */ color: oklch(36.1% 0.175 271.9);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#242897',
    950: '#000000',
  },
}
SCSS
$custom: #242897;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242897",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 237.913,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36128,
    "c": 0.17546,
    "h": 271.9
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#242897
secondary
#BDBA5A
accent
#DF43E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242897

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

Preview Lab → · Contrast checker → · Palette generator →

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