#242098#242098

#242098 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.185 H 272.9°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#242098
RGBrgb(36, 32, 152)
HSLhsl(242, 65%, 36%)
HSVhsv(242, 79%, 60%)
CMYKcmyk(76.3%, 78.9%, 0%, 40.4%)
CIE-LABlab(22.56, 42.45, -63.72)
CIE-LCHlch(22.56, 76.56, 303.67°)
OKLaboklab(35.08% 0.0093 -0.1844)
OKLCHoklch(35.08% 0.185 272.9)
XYZxyz(6.9097, 3.6744, 30.0447)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242098 #949820
analogous
#205898 #242098 #602098
triadic
#242098 #982420 #209824
tetradic
#242098 #982058 #949820 #209860
square
#242098 #982058 #949820 #209860
split-complementary
#242098 #986020 #589820
monochromatic
#0C0B33 #181565 #242098 #302BCB #5B57DC

Accessibility & contrast

On white

12.10
#242098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242098
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242098#FFFFFF#000000##FFFFFF
##2420981.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242098;
/* rgb */ color: rgb(36, 32, 152);
/* oklch */ color: oklch(35.1% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#735eb8',
    500: '#242098',
    950: '#000000',
  },
}
SCSS
$custom: #242098;
$custom-light: #735eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#242098",
  "rgb": {
    "r": 36,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 242,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.18461,
    "h": 272.9
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#242098
secondary
#BCBF54
accent
#E840E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #242098

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

Preview Lab → · Contrast checker → · Palette generator →

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