#242188#242188

#242188 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.164 H 274.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#242188
RGBrgb(36, 33, 136)
HSLhsl(242, 61%, 33%)
HSVhsv(242, 76%, 53%)
CMYKcmyk(73.5%, 75.7%, 0%, 46.7%)
CIE-LABlab(20.98, 36.47, -56.40)
CIE-LCHlch(20.98, 67.17, 302.89°)
OKLaboklab(33.44% 0.0122 -0.1631)
OKLCHoklch(33.44% 0.164 274.3)
XYZxyz(5.7139, 3.2398, 23.6120)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242188 #858821
analogous
#215188 #242188 #582188
triadic
#242188 #882421 #218824
tetradic
#242188 #882151 #858821 #218858
square
#242188 #882151 #858821 #218858
split-complementary
#242188 #885821 #518821
monochromatic
#0A0925 #171557 #242188 #312DB9 #534FD4

Accessibility & contrast

On white

12.74
#242188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#242188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242188
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242188#FFFFFF#000000##FFFFFF
##2421881.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242188;
/* rgb */ color: rgb(36, 33, 136);
/* oklch */ color: oklch(33.4% 0.164 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f5eac',
    500: '#242188',
    950: '#000000',
  },
}
SCSS
$custom: #242188;
$custom-light: #6f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#242188",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 241.748,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.16357,
    "h": 274.3
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#242188
secondary
#B4B84D
accent
#E444DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #242188

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

Preview Lab → · Contrast checker → · Palette generator →

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