#242D7A#242D7A

#242D7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.130 H 272.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#242D7A
RGBrgb(36, 45, 122)
HSLhsl(234, 54%, 31%)
HSVhsv(234, 70%, 48%)
CMYKcmyk(70.5%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.50, 23.58, -45.07)
CIE-LCHlch(22.50, 50.87, 297.62°)
OKLaboklab(34.13% 0.0054 -0.1299)
OKLCHoklch(34.13% 0.13 272.4)
XYZxyz(5.1776, 3.6565, 18.8415)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7A #7A7124
analogous
#24587A #242D7A #46247A
triadic
#242D7A #7A242D #2D7A24
tetradic
#242D7A #7A2458 #7A7124 #247A46
square
#242D7A #7A2458 #7A7124 #247A46
split-complementary
#242D7A #7A4624 #587A24
monochromatic
#080A1B #161C4B #242D7A #323EA9 #4E5BCB

Accessibility & contrast

On white

12.13
#242D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#242D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D7A
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7A#FFFFFF#000000##FFFFFF
##242D7A1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242d7a;
/* rgb */ color: rgb(36, 45, 122);
/* oklch */ color: oklch(34.1% 0.130 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b65a1',
    500: '#242d7a',
    950: '#000000',
  },
}
SCSS
$custom: #242d7a;
$custom-light: #6b65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7a",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 233.721,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34125,
    "c": 0.13005,
    "h": 272.4
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#242D7A
secondary
#ACA34D
accent
#CE4ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #242D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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