#242D97#242D97

#242D97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.170 H 271.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#242D97
RGBrgb(36, 45, 151)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 76%, 59%)
CMYKcmyk(76.2%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.22, 34.40, -58.73)
CIE-LCHlch(25.22, 68.06, 300.36°)
OKLaboklab(36.94% 0.0032 -0.1699)
OKLCHoklch(36.94% 0.17 271.1)
XYZxyz(7.2500, 4.4854, 29.7558)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D97 #978E24
analogous
#246797 #242D97 #552497
triadic
#242D97 #97242D #2D9724
tetradic
#242D97 #972467 #978E24 #249755
square
#242D97 #972467 #978E24 #249755
split-complementary
#242D97 #975524 #679724
monochromatic
#0C1034 #181E66 #242D97 #303CC8 #5D67D8

Accessibility & contrast

On white

11.07
#242D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#242D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D97
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D97#FFFFFF#000000##FFFFFF
##242D971.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #242d97;
/* rgb */ color: rgb(36, 45, 151);
/* oklch */ color: oklch(36.9% 0.170 271.1);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#242d97',
    950: '#000000',
  },
}
SCSS
$custom: #242d97;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242d97",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 235.304,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36941,
    "c": 0.16997,
    "h": 271.1
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#242D97
secondary
#BDB55A
accent
#D843E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242D97

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

Preview Lab → · Contrast checker → · Palette generator →

#242D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva