#242F72#242F72

#242F72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.116 H 271.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#242F72
RGBrgb(36, 47, 114)
HSLhsl(232, 52%, 29%)
HSVhsv(232, 68%, 45%)
CMYKcmyk(68.4%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.38, 19.12, -40.16)
CIE-LCHlch(22.38, 44.48, 295.46°)
OKLaboklab(33.83% 0.0035 -0.1155)
OKLCHoklch(33.83% 0.116 271.7)
XYZxyz(4.7803, 3.6226, 16.3636)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F72 #726724
analogous
#245672 #242F72 #402472
triadic
#242F72 #72242F #2F7224
tetradic
#242F72 #722456 #726724 #247240
square
#242F72 #722456 #726724 #247240
split-complementary
#242F72 #724024 #567224
monochromatic
#070A17 #151C43 #242F72 #3342A1 #4A5CC6

Accessibility & contrast

On white

12.18
#242F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#242F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F72
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F72#FFFFFF#000000##FFFFFF
##242F721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #242f72;
/* rgb */ color: rgb(36, 47, 114);
/* oklch */ color: oklch(33.8% 0.116 271.7);
Tailwind
colors: {
  custom: {
    50: '#69679b',
    500: '#242f72',
    950: '#000000',
  },
}
SCSS
$custom: #242f72;
$custom-light: #69679b;
$custom-dark: #000000;
JSON
{
  "hex": "#242f72",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 231.538,
    "s": 52,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.11554,
    "h": 271.7
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#242F72
secondary
#A5984D
accent
#C74CDB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #242F72

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

Preview Lab → · Contrast checker → · Palette generator →

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