#241F98#241F98

#241F98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.186 H 273.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#241F98
RGBrgb(36, 31, 152)
HSLhsl(242, 66%, 36%)
HSVhsv(242, 80%, 60%)
CMYKcmyk(76.3%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.38, 42.99, -64.03)
CIE-LCHlch(22.38, 77.12, 303.88°)
OKLaboklab(34.95% 0.0097 -0.1853)
OKLCHoklch(34.95% 0.186 273)
XYZxyz(6.8831, 3.6213, 30.0359)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241F98 #93981F
analogous
#1F5698 #241F98 #601F98
triadic
#241F98 #98241F #1F9824
tetradic
#241F98 #981F56 #93981F #1F9860
square
#241F98 #981F56 #93981F #1F9860
split-complementary
#241F98 #98601F #56981F
monochromatic
#0C0A32 #181565 #241F98 #3029CB #5B55DC

Accessibility & contrast

On white

12.18
#241F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#241F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241F98
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241F98#FFFFFF#000000##FFFFFF
##241F981.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #241f98;
/* rgb */ color: rgb(36, 31, 152);
/* oklch */ color: oklch(35.0% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#745db8',
    500: '#241f98',
    950: '#000000',
  },
}
SCSS
$custom: #241f98;
$custom-light: #745db8;
$custom-dark: #000000;
JSON
{
  "hex": "#241f98",
  "rgb": {
    "r": 36,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 242.479,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34953,
    "c": 0.18552,
    "h": 273
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#241F98
secondary
#BBC053
accent
#E93FE2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #241F98

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

Preview Lab → · Contrast checker → · Palette generator →

#241F98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva