#242882#242882

#242882 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.148 H 273.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#242882
RGBrgb(36, 40, 130)
HSLhsl(237, 57%, 33%)
HSVhsv(237, 72%, 51%)
CMYKcmyk(72.3%, 69.2%, 0%, 49%)
CIE-LABlab(21.96, 29.95, -51.02)
CIE-LCHlch(21.96, 59.16, 300.41°)
OKLaboklab(33.95% 0.0088 -0.1474)
OKLCHoklch(33.95% 0.148 273.4)
XYZxyz(5.5143, 3.5038, 21.5005)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242882 #827E24
analogous
#245782 #242882 #4F2482
triadic
#242882 #822428 #288224
tetradic
#242882 #822457 #827E24 #24824F
square
#242882 #822457 #827E24 #24824F
split-complementary
#242882 #824F24 #578224
monochromatic
#090B22 #171952 #242882 #3137B2 #5157CF

Accessibility & contrast

On white

12.35
#242882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242882
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242882#FFFFFF#000000##FFFFFF
##2428821.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242882;
/* rgb */ color: rgb(36, 40, 130);
/* oklch */ color: oklch(34.0% 0.148 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d62a7',
    500: '#242882',
    950: '#000000',
  },
}
SCSS
$custom: #242882;
$custom-light: #6d62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#242882",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 237.447,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.14768,
    "h": 273.4
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#242882
secondary
#B3AF4F
accent
#D948E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242882

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

Preview Lab → · Contrast checker → · Palette generator →

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