#242197#242197

#242197 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 272.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#242197
RGBrgb(36, 33, 151)
HSLhsl(242, 64%, 36%)
HSVhsv(242, 78%, 59%)
CMYKcmyk(76.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.64, 41.57, -62.97)
CIE-LCHlch(22.64, 75.46, 303.43°)
OKLaboklab(35.1% 0.0091 -0.1822)
OKLCHoklch(35.1% 0.182 272.9)
XYZxyz(6.8555, 3.6964, 29.6243)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242197 #949721
analogous
#215997 #242197 #5F2197
triadic
#242197 #972421 #219724
tetradic
#242197 #972159 #949721 #21975F
square
#242197 #972159 #949721 #21975F
split-complementary
#242197 #975F21 #599721
monochromatic
#0C0B33 #181665 #242197 #302CC9 #5B58DA

Accessibility & contrast

On white

12.07
#242197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242197
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242197#FFFFFF#000000##FFFFFF
##2421971.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242197;
/* rgb */ color: rgb(36, 33, 151);
/* oklch */ color: oklch(35.1% 0.182 272.9);
Tailwind
colors: {
  custom: {
    50: '#735eb7',
    500: '#242197',
    950: '#000000',
  },
}
SCSS
$custom: #242197;
$custom-light: #735eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#242197",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 241.525,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35104,
    "c": 0.18247,
    "h": 272.9
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#242197
secondary
#BCBE55
accent
#E741E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #242197

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

Preview Lab → · Contrast checker → · Palette generator →

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