#242A97#242A97

#242A97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.173 H 271.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#242A97
RGBrgb(36, 42, 151)
HSLhsl(237, 61%, 37%)
HSVhsv(237, 76%, 59%)
CMYKcmyk(76.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.53, 36.28, -59.86)
CIE-LCHlch(24.53, 69.99, 301.22°)
OKLaboklab(36.45% 0.0049 -0.1732)
OKLCHoklch(36.45% 0.173 271.6)
XYZxyz(7.1395, 4.2646, 29.7190)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A97 #979124
analogous
#246497 #242A97 #582497
triadic
#242A97 #97242A #2A9724
tetradic
#242A97 #972464 #979124 #249758
square
#242A97 #972464 #979124 #249758
split-complementary
#242A97 #975824 #649724
monochromatic
#0C0F34 #181C66 #242A97 #3038C8 #5D63D8

Accessibility & contrast

On white

11.33
#242A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#242A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A97
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A97#FFFFFF#000000##FFFFFF
##242A971.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242a97;
/* rgb */ color: rgb(36, 42, 151);
/* oklch */ color: oklch(36.4% 0.173 271.6);
Tailwind
colors: {
  custom: {
    50: '#7264b7',
    500: '#242a97',
    950: '#000000',
  },
}
SCSS
$custom: #242a97;
$custom-light: #7264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242a97",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 236.87,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36445,
    "c": 0.17331,
    "h": 271.6
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#242A97
secondary
#BDB85A
accent
#DC43E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #242A97

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

Preview Lab → · Contrast checker → · Palette generator →

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