#242873#242873

#242873 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.127 H 274.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#242873
RGBrgb(36, 40, 115)
HSLhsl(237, 52%, 30%)
HSVhsv(237, 69%, 45%)
CMYKcmyk(68.7%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.56, 24.37, -43.77)
CIE-LCHlch(20.56, 50.09, 299.11°)
OKLaboklab(32.5% 0.01 -0.1262)
OKLCHoklch(32.5% 0.127 274.5)
XYZxyz(4.5798, 3.1301, 16.5791)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242873 #736F24
analogous
#245073 #242873 #482473
triadic
#242873 #732428 #287324
tetradic
#242873 #732450 #736F24 #247348
square
#242873 #732450 #736F24 #247348
split-complementary
#242873 #734824 #507324
monochromatic
#070817 #151844 #242873 #3338A2 #4B51C7

Accessibility & contrast

On white

12.92
#242873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#242873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242873
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242873#FFFFFF#000000##FFFFFF
##2428731.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242873;
/* rgb */ color: rgb(36, 40, 115);
/* oklch */ color: oklch(32.5% 0.127 274.5);
Tailwind
colors: {
  custom: {
    50: '#6a629c',
    500: '#242873',
    950: '#000000',
  },
}
SCSS
$custom: #242873;
$custom-light: #6a629c;
$custom-dark: #000000;
JSON
{
  "hex": "#242873",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 236.962,
    "s": 52.318,
    "l": 29.608
  },
  "oklch": {
    "l": 0.325,
    "c": 0.12657,
    "h": 274.5
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#242873
secondary
#A6A14D
accent
#D44CDC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #242873

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

Preview Lab → · Contrast checker → · Palette generator →

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