#242D7F#242D7F

#242D7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.137 H 272.2°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#242D7F
RGBrgb(36, 45, 127)
HSLhsl(234, 56%, 32%)
HSVhsv(234, 72%, 50%)
CMYKcmyk(71.7%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.94, 25.48, -47.51)
CIE-LCHlch(22.94, 53.92, 298.21°)
OKLaboklab(34.59% 0.0052 -0.1371)
OKLCHoklch(34.59% 0.137 272.2)
XYZxyz(5.4954, 3.7836, 20.5153)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7F #7F7624
analogous
#245B7F #242D7F #49247F
triadic
#242D7F #7F242D #2D7F24
tetradic
#242D7F #7F245B #7F7624 #247F49
square
#242D7F #7F245B #7F7624 #247F49
split-complementary
#242D7F #7F4924 #5B7F24
monochromatic
#090B20 #161C4F #242D7F #323EAF #505CCD

Accessibility & contrast

On white

11.95
#242D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D7F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7F#FFFFFF#000000##FFFFFF
##242D7F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242d7f;
/* rgb */ color: rgb(36, 45, 127);
/* oklch */ color: oklch(34.6% 0.137 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c66a5',
    500: '#242d7f',
    950: '#000000',
  },
}
SCSS
$custom: #242d7f;
$custom-light: #6c66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7f",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 234.066,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.13722,
    "h": 272.2
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#242D7F
secondary
#B1A74E
accent
#D049DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #242D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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