#242A72#242A72

#242A72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.122 H 273.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#242A72
RGBrgb(36, 42, 114)
HSLhsl(235, 52%, 29%)
HSVhsv(235, 68%, 45%)
CMYKcmyk(68.4%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.00, 22.61, -42.40)
CIE-LCHlch(21.00, 48.06, 298.07°)
OKLaboklab(32.8% 0.0083 -0.1221)
OKLCHoklch(32.8% 0.122 273.9)
XYZxyz(4.5918, 3.2455, 16.3008)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A72 #726C24
analogous
#245172 #242A72 #452472
triadic
#242A72 #72242A #2A7224
tetradic
#242A72 #722451 #726C24 #247245
square
#242A72 #722451 #726C24 #247245
split-complementary
#242A72 #724524 #517224
monochromatic
#070917 #151943 #242A72 #333BA1 #4A54C6

Accessibility & contrast

On white

12.73
#242A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#242A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A72
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A72#FFFFFF#000000##FFFFFF
##242A721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #242a72;
/* rgb */ color: rgb(36, 42, 114);
/* oklch */ color: oklch(32.8% 0.122 273.9);
Tailwind
colors: {
  custom: {
    50: '#69639b',
    500: '#242a72',
    950: '#000000',
  },
}
SCSS
$custom: #242a72;
$custom-light: #69639b;
$custom-dark: #000000;
JSON
{
  "hex": "#242a72",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 235.385,
    "s": 52,
    "l": 29.412
  },
  "oklch": {
    "l": 0.328,
    "c": 0.12242,
    "h": 273.9
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#242A72
secondary
#A59E4D
accent
#D04CDB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #242A72

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

Preview Lab → · Contrast checker → · Palette generator →

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