#242562#242562

#242562 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.4% C 0.105 H 277.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#242562
RGBrgb(36, 37, 98)
HSLhsl(239, 46%, 26%)
HSVhsv(239, 63%, 38%)
CMYKcmyk(63.3%, 62.2%, 0%, 61.6%)
CIE-LABlab(18.28, 20.07, -36.42)
CIE-LCHlch(18.28, 41.58, 298.85°)
OKLaboklab(30.36% 0.0135 -0.1046)
OKLCHoklch(30.36% 0.105 277.4)
XYZxyz(3.5930, 2.5798, 11.8615)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242562 #626124
analogous
#244462 #242562 #422462
triadic
#242562 #622425 #256224
tetradic
#242562 #622444 #626124 #246242
square
#242562 #622444 #626124 #246242
split-complementary
#242562 #624224 #446224
monochromatic
#080816 #141435 #242562 #34368F #4647BB

Accessibility & contrast

On white

13.85
#242562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#242562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242562
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242562#FFFFFF#000000##FFFFFF
##2425621.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#00343F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #242562;
/* rgb */ color: rgb(36, 37, 98);
/* oklch */ color: oklch(30.4% 0.105 277.4);
Tailwind
colors: {
  custom: {
    50: '#665f8f',
    500: '#242562',
    950: '#000000',
  },
}
SCSS
$custom: #242562;
$custom-light: #665f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#242562",
  "rgb": {
    "r": 36,
    "g": 37,
    "b": 98
  },
  "hsl": {
    "h": 239.032,
    "s": 46.269,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30356,
    "c": 0.10549,
    "h": 277.4
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#242562
secondary
#95944C
accent
#D452D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #242562

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

Preview Lab → · Contrast checker → · Palette generator →

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