#242C97#242C97

#242C97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.171 H 271.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#242C97
RGBrgb(36, 44, 151)
HSLhsl(236, 61%, 37%)
HSVhsv(236, 76%, 59%)
CMYKcmyk(76.2%, 70.9%, 0%, 40.8%)
CIE-LABlab(24.98, 35.03, -59.11)
CIE-LCHlch(24.98, 68.71, 300.65°)
OKLaboklab(36.77% 0.0038 -0.171)
OKLCHoklch(36.77% 0.171 271.3)
XYZxyz(7.2123, 4.4100, 29.7433)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242C97 #978F24
analogous
#246697 #242C97 #562497
triadic
#242C97 #97242C #2C9724
tetradic
#242C97 #972466 #978F24 #249756
square
#242C97 #972466 #978F24 #249756
split-complementary
#242C97 #975624 #669724
monochromatic
#0C0F34 #181E66 #242C97 #303AC8 #5D66D8

Accessibility & contrast

On white

11.16
#242C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#242C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242C97
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242C97#FFFFFF#000000##FFFFFF
##242C971.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242c97;
/* rgb */ color: rgb(36, 44, 151);
/* oklch */ color: oklch(36.8% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#242c97',
    950: '#000000',
  },
}
SCSS
$custom: #242c97;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242c97",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 235.826,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.17109,
    "h": 271.3
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#242C97
secondary
#BDB65A
accent
#D943E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242C97

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

Preview Lab → · Contrast checker → · Palette generator →

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