#241797#241797

#241797 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.9% C 0.191 H 273.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#241797
RGBrgb(36, 23, 151)
HSLhsl(246, 74%, 34%)
HSVhsv(246, 85%, 59%)
CMYKcmyk(76.2%, 84.8%, 0%, 40.8%)
CIE-LABlab(20.91, 46.60, -65.84)
CIE-LCHlch(20.91, 80.67, 305.29°)
OKLaboklab(33.9% 0.0126 -0.1904)
OKLCHoklch(33.9% 0.191 273.8)
XYZxyz(6.6180, 3.2215, 29.5452)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241797 #8A9717
analogous
#174A97 #241797 #641797
triadic
#241797 #972417 #179724
tetradic
#241797 #97174A #8A9717 #179764
square
#241797 #97174A #8A9717 #179764
split-complementary
#241797 #976417 #4A9717
monochromatic
#0B072D #170F62 #241797 #311FCC #5646E3

Accessibility & contrast

On white

12.77
#241797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241797
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241797#FFFFFF#000000##FFFFFF
##2417971.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #241797;
/* rgb */ color: rgb(36, 23, 151);
/* oklch */ color: oklch(33.9% 0.191 273.8);
Tailwind
colors: {
  custom: {
    50: '#7459b7',
    500: '#241797',
    950: '#000000',
  },
}
SCSS
$custom: #241797;
$custom-light: #7459b7;
$custom-dark: #000000;
JSON
{
  "hex": "#241797",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 246.094,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33899,
    "c": 0.19082,
    "h": 273.8
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #241797

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

Preview Lab → · Contrast checker → · Palette generator →

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