#242798#242798

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

Color values

HEX#242798
RGBrgb(36, 39, 152)
HSLhsl(238, 62%, 37%)
HSVhsv(238, 76%, 60%)
CMYKcmyk(76.3%, 74.3%, 0%, 40.4%)
CIE-LABlab(23.97, 38.46, -61.39)
CIE-LCHlch(23.97, 72.44, 302.07°)
OKLaboklab(36.08% 0.0062 -0.1777)
OKLCHoklch(36.08% 0.178 272)
XYZxyz(7.1187, 4.0924, 30.1144)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242798 #989524
analogous
#246198 #242798 #5B2498
triadic
#242798 #982427 #279824
tetradic
#242798 #982461 #989524 #24985B
square
#242798 #982461 #989524 #24985B
split-complementary
#242798 #985B24 #619824
monochromatic
#0D0E35 #181A67 #242798 #3034C9 #5E61D9

Accessibility & contrast

On white

11.55
#242798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#242798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242798
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242798#FFFFFF#000000##FFFFFF
##2427981.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242798;
/* rgb */ color: rgb(36, 39, 152);
/* oklch */ color: oklch(36.1% 0.178 272.0);
Tailwind
colors: {
  custom: {
    50: '#7362b7',
    500: '#242798',
    950: '#000000',
  },
}
SCSS
$custom: #242798;
$custom-light: #7362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242798",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 238.448,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.17778,
    "h": 272
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#242798
secondary
#BEBB5A
accent
#E143E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242798

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

Preview Lab → · Contrast checker → · Palette generator →

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