#241796#241796

#241796 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.190 H 273.9°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#241796
RGBrgb(36, 23, 150)
HSLhsl(246, 73%, 34%)
HSVhsv(246, 85%, 59%)
CMYKcmyk(76%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.79, 46.30, -65.43)
CIE-LCHlch(20.79, 80.15, 305.28°)
OKLaboklab(33.78% 0.0129 -0.1892)
OKLCHoklch(33.78% 0.19 273.9)
XYZxyz(6.5371, 3.1892, 29.1193)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241796 #899617
analogous
#174A96 #241796 #641796
triadic
#241796 #962417 #179624
tetradic
#241796 #96174A #899617 #179664
square
#241796 #96174A #899617 #179664
split-complementary
#241796 #966417 #4A9617
monochromatic
#0B072C #170F61 #241796 #311FCB #5545E2

Accessibility & contrast

On white

12.82
#241796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#241796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241796
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241796#FFFFFF#000000##FFFFFF
##2417961.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #241796;
/* rgb */ color: rgb(36, 23, 150);
/* oklch */ color: oklch(33.8% 0.190 273.9);
Tailwind
colors: {
  custom: {
    50: '#7459b6',
    500: '#241796',
    950: '#000000',
  },
}
SCSS
$custom: #241796;
$custom-light: #7459b6;
$custom-dark: #000000;
JSON
{
  "hex": "#241796",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 246.142,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33778,
    "c": 0.18965,
    "h": 273.9
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#241796
secondary
#B7C345
accent
#F038DD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #241796

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

Preview Lab → · Contrast checker → · Palette generator →

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