#242276#242276

#242276 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.138 H 276.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#242276
RGBrgb(36, 34, 118)
HSLhsl(241, 55%, 30%)
HSVhsv(241, 71%, 46%)
CMYKcmyk(69.5%, 71.2%, 0%, 53.7%)
CIE-LABlab(19.34, 29.48, -47.69)
CIE-LCHlch(19.34, 56.07, 301.72°)
OKLaboklab(31.7% 0.0147 -0.1377)
OKLCHoklch(31.7% 0.138 276.1)
XYZxyz(4.5685, 2.8267, 17.4409)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242276 #747622
analogous
#224A76 #242276 #4E2276
triadic
#242276 #762422 #227624
tetradic
#242276 #76224A #747622 #22764E
square
#242276 #76224A #747622 #22764E
split-complementary
#242276 #764E22 #4A7622
monochromatic
#070718 #161446 #242276 #3230A6 #4B48CA

Accessibility & contrast

On white

13.42
#242276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#242276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242276
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242276#FFFFFF#000000##FFFFFF
##2422761.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #242276;
/* rgb */ color: rgb(36, 34, 118);
/* oklch */ color: oklch(31.7% 0.138 276.1);
Tailwind
colors: {
  custom: {
    50: '#6b5e9e',
    500: '#242276',
    950: '#000000',
  },
}
SCSS
$custom: #242276;
$custom-light: #6b5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#242276",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 241.429,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.13848,
    "h": 276.1
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#242276
secondary
#A7A94B
accent
#DF49DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242276

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

Preview Lab → · Contrast checker → · Palette generator →

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