#242173#242173

#242173 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.136 H 276.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#242173
RGBrgb(36, 33, 115)
HSLhsl(242, 55%, 29%)
HSVhsv(242, 71%, 45%)
CMYKcmyk(68.7%, 71.3%, 0%, 54.9%)
CIE-LABlab(18.80, 29.05, -46.64)
CIE-LCHlch(18.80, 54.95, 301.91°)
OKLaboklab(31.22% 0.0159 -0.1346)
OKLCHoklch(31.22% 0.136 276.7)
XYZxyz(4.3649, 2.7002, 16.5075)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242173 #707321
analogous
#214773 #242173 #4D2173
triadic
#242173 #732421 #217324
tetradic
#242173 #732147 #707321 #21734D
square
#242173 #732147 #707321 #21734D
split-complementary
#242173 #734D21 #477321
monochromatic
#070718 #151343 #242173 #332FA3 #4A45CA

Accessibility & contrast

On white

13.63
#242173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#242173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242173
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242173#FFFFFF#000000##FFFFFF
##2421731.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #242173;
/* rgb */ color: rgb(36, 33, 115);
/* oklch */ color: oklch(31.2% 0.136 276.7);
Tailwind
colors: {
  custom: {
    50: '#6a5d9c',
    500: '#242173',
    950: '#000000',
  },
}
SCSS
$custom: #242173;
$custom-light: #6a5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#242173",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 242.195,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31221,
    "c": 0.13556,
    "h": 276.7
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#242173
secondary
#A3A649
accent
#DF49D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242173

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

Preview Lab → · Contrast checker → · Palette generator →

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