#242687#242687

#242687 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.157 H 273.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#242687
RGBrgb(36, 38, 135)
HSLhsl(239, 58%, 34%)
HSVhsv(239, 73%, 53%)
CMYKcmyk(73.3%, 71.9%, 0%, 47.1%)
CIE-LABlab(21.98, 33.05, -54.12)
CIE-LCHlch(21.98, 63.42, 301.41°)
OKLaboklab(34.12% 0.0094 -0.1565)
OKLCHoklch(34.12% 0.157 273.5)
XYZxyz(5.7924, 3.5100, 23.2892)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242687 #878524
analogous
#245787 #242687 #532487
triadic
#242687 #872426 #268724
tetradic
#242687 #872457 #878524 #248753
square
#242687 #872457 #878524 #248753
split-complementary
#242687 #875324 #578724
monochromatic
#0A0B26 #171857 #242687 #3134B7 #5457D1

Accessibility & contrast

On white

12.34
#242687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#242687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242687
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242687#FFFFFF#000000##FFFFFF
##2426871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242687;
/* rgb */ color: rgb(36, 38, 135);
/* oklch */ color: oklch(34.1% 0.157 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f61ab',
    500: '#242687',
    950: '#000000',
  },
}
SCSS
$custom: #242687;
$custom-light: #6f61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242687",
  "rgb": {
    "r": 36,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 238.788,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.15678,
    "h": 273.5
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#242687
secondary
#B5B351
accent
#DE47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242687

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

Preview Lab → · Contrast checker → · Palette generator →

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