#241787#241787

#241787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.172 H 275.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#241787
RGBrgb(36, 23, 135)
HSLhsl(247, 71%, 31%)
HSVhsv(247, 83%, 53%)
CMYKcmyk(73.3%, 83%, 0%, 47.1%)
CIE-LABlab(18.96, 41.61, -59.12)
CIE-LCHlch(18.96, 72.29, 305.14°)
OKLaboklab(31.98% 0.0172 -0.1709)
OKLCHoklch(31.98% 0.172 275.7)
XYZxyz(5.4057, 2.7366, 23.1603)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241787 #7A8717
analogous
#174287 #241787 #5C1787
triadic
#241787 #872417 #178724
tetradic
#241787 #871742 #7A8717 #17875C
square
#241787 #871742 #7A8717 #17875C
split-complementary
#241787 #875C17 #428717
monochromatic
#08051E #160E53 #241787 #3220BB #4E3BDE

Accessibility & contrast

On white

13.57
#241787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#241787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241787
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241787#FFFFFF#000000##FFFFFF
##2417871.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #241787;
/* rgb */ color: rgb(36, 23, 135);
/* oklch */ color: oklch(32.0% 0.172 275.7);
Tailwind
colors: {
  custom: {
    50: '#7058ab',
    500: '#241787',
    950: '#000000',
  },
}
SCSS
$custom: #241787;
$custom-light: #7058ab;
$custom-dark: #000000;
JSON
{
  "hex": "#241787",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 246.964,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31984,
    "c": 0.17176,
    "h": 275.7
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#241787
secondary
#ACBB3F
accent
#EE3AD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #241787

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

Preview Lab → · Contrast checker → · Palette generator →

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