#242885#242885

#242885 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.152 H 273.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#242885
RGBrgb(36, 40, 133)
HSLhsl(238, 57%, 33%)
HSVhsv(238, 73%, 52%)
CMYKcmyk(72.9%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.25, 31.05, -52.43)
CIE-LCHlch(22.25, 60.93, 300.64°)
OKLaboklab(34.26% 0.0084 -0.1515)
OKLCHoklch(34.26% 0.152 273.2)
XYZxyz(5.7186, 3.5855, 22.5765)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242885 #858124
analogous
#245885 #242885 #502485
triadic
#242885 #852428 #288524
tetradic
#242885 #852458 #858124 #248550
square
#242885 #852458 #858124 #248550
split-complementary
#242885 #855024 #588524
monochromatic
#0A0B25 #171A55 #242885 #3136B5 #5358D0

Accessibility & contrast

On white

12.23
#242885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#242885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242885
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242885#FFFFFF#000000##FFFFFF
##2428851.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242885;
/* rgb */ color: rgb(36, 40, 133);
/* oklch */ color: oklch(34.3% 0.152 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e62a9',
    500: '#242885',
    950: '#000000',
  },
}
SCSS
$custom: #242885;
$custom-light: #6e62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#242885",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 237.526,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34256,
    "c": 0.15177,
    "h": 273.2
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#242885
secondary
#B4B050
accent
#DA47E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242885

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

Preview Lab → · Contrast checker → · Palette generator →

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