#242172#242172

#242172 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.134 H 276.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#242172
RGBrgb(36, 33, 114)
HSLhsl(242, 55%, 29%)
HSVhsv(242, 71%, 45%)
CMYKcmyk(68.4%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.70, 28.69, -46.16)
CIE-LCHlch(18.70, 54.35, 301.86°)
OKLaboklab(31.12% 0.016 -0.1332)
OKLCHoklch(31.12% 0.134 276.8)
XYZxyz(4.3077, 2.6773, 16.2061)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242172 #6F7221
analogous
#214772 #242172 #4D2172
triadic
#242172 #722421 #217224
tetradic
#242172 #722147 #6F7221 #21724D
square
#242172 #722147 #6F7221 #21724D
split-complementary
#242172 #724D21 #477221
monochromatic
#070718 #151343 #242172 #332FA1 #4944C9

Accessibility & contrast

On white

13.68
#242172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242172
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242172#FFFFFF#000000##FFFFFF
##2421721.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #242172;
/* rgb */ color: rgb(36, 33, 114);
/* oklch */ color: oklch(31.1% 0.134 276.8);
Tailwind
colors: {
  custom: {
    50: '#6a5d9b',
    500: '#242172',
    950: '#000000',
  },
}
SCSS
$custom: #242172;
$custom-light: #6a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#242172",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 242.222,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3112,
    "c": 0.13417,
    "h": 276.8
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#242172
secondary
#A2A549
accent
#DE49D9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242172

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

Preview Lab → · Contrast checker → · Palette generator →

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