#242199#242199

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

Color values

HEX#242199
RGBrgb(36, 33, 153)
HSLhsl(242, 65%, 36%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(76.5%, 78.4%, 0%, 40%)
CIE-LABlab(22.87, 42.24, -63.83)
CIE-LCHlch(22.87, 76.54, 303.50°)
OKLaboklab(35.33% 0.0087 -0.1847)
OKLCHoklch(35.33% 0.185 272.7)
XYZxyz(7.0193, 3.7619, 30.4870)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242199 #969921
analogous
#215A99 #242199 #602199
triadic
#242199 #992421 #219924
tetradic
#242199 #99215A #969921 #219960
square
#242199 #99215A #969921 #219960
split-complementary
#242199 #996021 #5A9921
monochromatic
#0C0B34 #181667 #242199 #302CCB #5C59DB

Accessibility & contrast

On white

11.98
#242199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#242199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242199
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242199#FFFFFF#000000##FFFFFF
##2421991.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242199;
/* rgb */ color: rgb(36, 33, 153);
/* oklch */ color: oklch(35.3% 0.185 272.7);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#242199',
    950: '#000000',
  },
}
SCSS
$custom: #242199;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#242199",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 241.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3533,
    "c": 0.18492,
    "h": 272.7
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

primary
#242199
secondary
#BDBF56
accent
#E840E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #242199

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

Preview Lab → · Contrast checker → · Palette generator →

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