#241872#241872

#241872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.144 H 279.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#241872
RGBrgb(36, 24, 114)
HSLhsl(248, 65%, 27%)
HSVhsv(248, 79%, 45%)
CMYKcmyk(68.4%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.71, 34.21, -49.43)
CIE-LCHlch(16.71, 60.12, 304.69°)
OKLaboklab(29.7% 0.0225 -0.1427)
OKLCHoklch(29.7% 0.144 279)
XYZxyz(4.0905, 2.2429, 16.1337)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241872 #667218
analogous
#183972 #241872 #511872
triadic
#241872 #722418 #187224
tetradic
#241872 #721839 #667218 #187251
square
#241872 #721839 #667218 #187251
split-complementary
#241872 #725118 #397218
monochromatic
#080519 #140D3F #241872 #3423A5 #4731D4

Accessibility & contrast

On white

14.50
#241872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#241872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241872
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241872#FFFFFF#000000##FFFFFF
##2418721.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #241872;
/* rgb */ color: rgb(36, 24, 114);
/* oklch */ color: oklch(29.7% 0.144 279.0);
Tailwind
colors: {
  custom: {
    50: '#6b579c',
    500: '#241872',
    950: '#000000',
  },
}
SCSS
$custom: #241872;
$custom-light: #6b579c;
$custom-dark: #000000;
JSON
{
  "hex": "#241872",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 248,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29702,
    "c": 0.14449,
    "h": 279
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#241872
secondary
#99A73E
accent
#E840D2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #241872

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

Preview Lab → · Contrast checker → · Palette generator →

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