#242162#242162

#242162 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.6% C 0.111 H 279.2°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#242162
RGBrgb(36, 33, 98)
HSLhsl(243, 50%, 26%)
HSVhsv(243, 66%, 38%)
CMYKcmyk(63.3%, 66.3%, 0%, 61.6%)
CIE-LABlab(17.20, 22.85, -38.17)
CIE-LCHlch(17.20, 44.49, 300.91°)
OKLaboklab(29.56% 0.0178 -0.1098)
OKLCHoklch(29.56% 0.111 279.2)
XYZxyz(3.4753, 2.3444, 11.8223)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242162 #5F6221
analogous
#213E62 #242162 #442162
triadic
#242162 #622421 #216224
tetradic
#242162 #62213E #5F6221 #216244
square
#242162 #62213E #5F6221 #216244
split-complementary
#242162 #624421 #3E6221
monochromatic
#080817 #131234 #242162 #353090 #4640BE

Accessibility & contrast

On white

14.30
#242162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#242162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242162
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242162#FFFFFF#000000##FFFFFF
##2421621.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #242162;
/* rgb */ color: rgb(36, 33, 98);
/* oklch */ color: oklch(29.6% 0.111 279.2);
Tailwind
colors: {
  custom: {
    50: '#665c8f',
    500: '#242162',
    950: '#000000',
  },
}
SCSS
$custom: #242162;
$custom-light: #665c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#242162",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 242.769,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29563,
    "c": 0.11122,
    "h": 279.2
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#242162
secondary
#939649
accent
#D94FD3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #242162

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

Preview Lab → · Contrast checker → · Palette generator →

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