#241798#241798

#241798 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.192 H 273.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#241798
RGBrgb(36, 23, 152)
HSLhsl(246, 74%, 34%)
HSVhsv(246, 85%, 60%)
CMYKcmyk(76.3%, 84.9%, 0%, 40.4%)
CIE-LABlab(21.03, 46.91, -66.25)
CIE-LCHlch(21.03, 81.18, 305.30°)
OKLaboklab(34.02% 0.0123 -0.1916)
OKLCHoklch(34.02% 0.192 273.7)
XYZxyz(6.6996, 3.2542, 29.9747)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241798 #8B9817
analogous
#174A98 #241798 #651798
triadic
#241798 #982417 #179824
tetradic
#241798 #98174A #8B9817 #179865
square
#241798 #98174A #8B9817 #179865
split-complementary
#241798 #986517 #4A9817
monochromatic
#0B072E #170F63 #241798 #311FCD #5646E3

Accessibility & contrast

On white

12.72
#241798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#241798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241798
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241798#FFFFFF#000000##FFFFFF
##2417981.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002C96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #241798;
/* rgb */ color: rgb(36, 23, 152);
/* oklch */ color: oklch(34.0% 0.192 273.7);
Tailwind
colors: {
  custom: {
    50: '#7459b8',
    500: '#241798',
    950: '#000000',
  },
}
SCSS
$custom: #241798;
$custom-light: #7459b8;
$custom-dark: #000000;
JSON
{
  "hex": "#241798",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 246.047,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3402,
    "c": 0.19199,
    "h": 273.7
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#241798
secondary
#B7C447
accent
#F037DE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #241798

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

Preview Lab → · Contrast checker → · Palette generator →

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