#242371#242371

#242371 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.130 H 276.4°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#242371
RGBrgb(36, 35, 113)
HSLhsl(241, 53%, 29%)
HSVhsv(241, 69%, 44%)
CMYKcmyk(68.1%, 69%, 0%, 55.7%)
CIE-LABlab(19.09, 27.01, -44.87)
CIE-LCHlch(19.09, 52.37, 301.04°)
OKLaboklab(31.37% 0.0145 -0.1294)
OKLCHoklch(31.37% 0.13 276.4)
XYZxyz(4.3082, 2.7690, 15.9270)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242371 #707123
analogous
#234971 #242371 #4B2371
triadic
#242371 #712423 #237124
tetradic
#242371 #712349 #707123 #23714B
square
#242371 #712349 #707123 #23714B
split-complementary
#242371 #714B23 #497123
monochromatic
#070717 #151542 #242371 #3331A0 #4A48C6

Accessibility & contrast

On white

13.52
#242371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#242371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242371
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242371#FFFFFF#000000##FFFFFF
##2423711.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #242371;
/* rgb */ color: rgb(36, 35, 113);
/* oklch */ color: oklch(31.4% 0.130 276.4);
Tailwind
colors: {
  custom: {
    50: '#6a5e9b',
    500: '#242371',
    950: '#000000',
  },
}
SCSS
$custom: #242371;
$custom-light: #6a5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#242371",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 240.769,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31374,
    "c": 0.13025,
    "h": 276.4
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#242371
secondary
#A3A44C
accent
#DC4CDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242371

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

Preview Lab → · Contrast checker → · Palette generator →

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