#242A7D#242A7D

#242A7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.138 H 273.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#242A7D
RGBrgb(36, 42, 125)
HSLhsl(236, 55%, 32%)
HSVhsv(236, 71%, 49%)
CMYKcmyk(71.2%, 66.4%, 0%, 51%)
CIE-LABlab(21.98, 26.76, -47.82)
CIE-LCHlch(21.98, 54.80, 299.24°)
OKLaboklab(33.83% 0.0077 -0.138)
OKLCHoklch(33.83% 0.138 273.2)
XYZxyz(5.2560, 3.5112, 19.7988)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A7D #7D7724
analogous
#24577D #242A7D #4B247D
triadic
#242A7D #7D242A #2A7D24
tetradic
#242A7D #7D2457 #7D7724 #247D4B
square
#242A7D #7D2457 #7D7724 #247D4B
split-complementary
#242A7D #7D4B24 #577D24
monochromatic
#090A1E #161A4D #242A7D #323AAD #4F58CC

Accessibility & contrast

On white

12.34
#242A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#242A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A7D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A7D#FFFFFF#000000##FFFFFF
##242A7D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242a7d;
/* rgb */ color: rgb(36, 42, 125);
/* oklch */ color: oklch(33.8% 0.138 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c63a3',
    500: '#242a7d',
    950: '#000000',
  },
}
SCSS
$custom: #242a7d;
$custom-light: #6c63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#242a7d",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 235.955,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33828,
    "c": 0.13825,
    "h": 273.2
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#242A7D
secondary
#AFA94D
accent
#D549DF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #242A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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