#242298#242298

#242298 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.183 H 272.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#242298
RGBrgb(36, 34, 152)
HSLhsl(241, 63%, 36%)
HSVhsv(241, 78%, 60%)
CMYKcmyk(76.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(22.95, 41.35, -63.08)
CIE-LCHlch(22.95, 75.43, 303.25°)
OKLaboklab(35.35% 0.0085 -0.1826)
OKLCHoklch(35.35% 0.183 272.7)
XYZxyz(6.9652, 3.7854, 30.0632)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242298 #969822
analogous
#225B98 #242298 #5F2298
triadic
#242298 #982422 #229824
tetradic
#242298 #98225B #969822 #22985F
square
#242298 #98225B #969822 #22985F
split-complementary
#242298 #985F22 #5B9822
monochromatic
#0C0C34 #181766 #242298 #302DCA #5C5ADA

Accessibility & contrast

On white

11.95
#242298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242298
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242298#FFFFFF#000000##FFFFFF
##2422981.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242298;
/* rgb */ color: rgb(36, 34, 152);
/* oklch */ color: oklch(35.4% 0.183 272.7);
Tailwind
colors: {
  custom: {
    50: '#735fb8',
    500: '#242298',
    950: '#000000',
  },
}
SCSS
$custom: #242298;
$custom-light: #735fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#242298",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 241.017,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.18276,
    "h": 272.7
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#242298
secondary
#BDBE57
accent
#E641E4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #242298

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

Preview Lab → · Contrast checker → · Palette generator →

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