#242998#242998

#242998 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.176 H 271.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#242998
RGBrgb(36, 41, 152)
HSLhsl(237, 62%, 37%)
HSVhsv(237, 76%, 60%)
CMYKcmyk(76.3%, 73%, 0%, 40.4%)
CIE-LABlab(24.41, 37.25, -60.67)
CIE-LCHlch(24.41, 71.19, 301.55°)
OKLaboklab(36.39% 0.0052 -0.1756)
OKLCHoklch(36.39% 0.176 271.7)
XYZxyz(7.1861, 4.2272, 30.1369)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242998 #989324
analogous
#246398 #242998 #592498
triadic
#242998 #982429 #299824
tetradic
#242998 #982463 #989324 #249859
square
#242998 #982463 #989324 #249859
split-complementary
#242998 #985924 #639824
monochromatic
#0D0E35 #181C67 #242998 #3036C9 #5E63D9

Accessibility & contrast

On white

11.38
#242998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#242998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242998
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242998#FFFFFF#000000##FFFFFF
##2429981.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242998;
/* rgb */ color: rgb(36, 41, 152);
/* oklch */ color: oklch(36.4% 0.176 271.7);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#242998',
    950: '#000000',
  },
}
SCSS
$custom: #242998;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242998",
  "rgb": {
    "r": 36,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 237.414,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36391,
    "c": 0.17568,
    "h": 271.7
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#242998
secondary
#BEB95A
accent
#DE43E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #242998

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

Preview Lab → · Contrast checker → · Palette generator →

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