#242790#242790

#242790 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.168 H 272.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#242790
RGBrgb(36, 39, 144)
HSLhsl(238, 60%, 35%)
HSVhsv(238, 75%, 56%)
CMYKcmyk(75%, 72.9%, 0%, 43.5%)
CIE-LABlab(23.13, 35.64, -57.84)
CIE-LCHlch(23.13, 67.94, 301.64°)
OKLaboklab(35.23% 0.0075 -0.1673)
OKLCHoklch(35.23% 0.168 272.6)
XYZxyz(6.4854, 3.8391, 26.7794)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242790 #908D24
analogous
#245D90 #242790 #572490
triadic
#242790 #902427 #279024
tetradic
#242790 #90245D #908D24 #249057
square
#242790 #90245D #908D24 #249057
split-complementary
#242790 #905724 #5D9024
monochromatic
#0C0C2E #181A5F #242790 #3034C1 #595CD5

Accessibility & contrast

On white

11.88
#242790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242790
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242790#FFFFFF#000000##FFFFFF
##2427901.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242790;
/* rgb */ color: rgb(36, 39, 144);
/* oklch */ color: oklch(35.2% 0.168 272.6);
Tailwind
colors: {
  custom: {
    50: '#7162b2',
    500: '#242790',
    950: '#000000',
  },
}
SCSS
$custom: #242790;
$custom-light: #7162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#242790",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 238.333,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.16751,
    "h": 272.6
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#242790
secondary
#BAB756
accent
#DF45E3
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242790

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

Preview Lab → · Contrast checker → · Palette generator →

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