#242C98#242C98

#242C98 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.172 H 271.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#242C98
RGBrgb(36, 44, 152)
HSLhsl(236, 62%, 37%)
HSVhsv(236, 76%, 60%)
CMYKcmyk(76.3%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.08, 35.39, -59.56)
CIE-LCHlch(25.08, 69.28, 300.72°)
OKLaboklab(36.88% 0.0037 -0.1724)
OKLCHoklch(36.88% 0.172 271.2)
XYZxyz(7.2938, 4.4427, 30.1728)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242C98 #989024
analogous
#246698 #242C98 #562498
triadic
#242C98 #98242C #2C9824
tetradic
#242C98 #982466 #989024 #249856
square
#242C98 #982466 #989024 #249856
split-complementary
#242C98 #985624 #669824
monochromatic
#0D0F35 #181E67 #242C98 #303AC9 #5E66D9

Accessibility & contrast

On white

11.12
#242C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#242C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242C98
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242C98#FFFFFF#000000##FFFFFF
##242C981.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #242c98;
/* rgb */ color: rgb(36, 44, 152);
/* oklch */ color: oklch(36.9% 0.172 271.2);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#242c98',
    950: '#000000',
  },
}
SCSS
$custom: #242c98;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242c98",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 235.862,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.1724,
    "h": 271.2
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#242C98
secondary
#BEB75A
accent
#DA43E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242C98

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

Preview Lab → · Contrast checker → · Palette generator →

#242C98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva