#242F7E#242F7E

#242F7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.133 H 271.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#242F7E
RGBrgb(36, 47, 126)
HSLhsl(233, 56%, 32%)
HSVhsv(233, 71%, 49%)
CMYKcmyk(71.4%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.38, 23.73, -46.16)
CIE-LCHlch(23.38, 51.91, 297.21°)
OKLaboklab(34.89% 0.0036 -0.1331)
OKLCHoklch(34.89% 0.133 271.6)
XYZxyz(5.5087, 3.9139, 20.1998)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F7E #7E7324
analogous
#245C7E #242F7E #46247E
triadic
#242F7E #7E242F #2F7E24
tetradic
#242F7E #7E245C #7E7324 #247E46
square
#242F7E #7E245C #7E7324 #247E46
split-complementary
#242F7E #7E4624 #5C7E24
monochromatic
#090B1F #161D4E #242F7E #3241AE #505FCD

Accessibility & contrast

On white

11.78
#242F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#242F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F7E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F7E#FFFFFF#000000##FFFFFF
##242F7E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242f7e;
/* rgb */ color: rgb(36, 47, 126);
/* oklch */ color: oklch(34.9% 0.133 271.6);
Tailwind
colors: {
  custom: {
    50: '#6c67a4',
    500: '#242f7e',
    950: '#000000',
  },
}
SCSS
$custom: #242f7e;
$custom-light: #6c67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#242f7e",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 232.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34887,
    "c": 0.13318,
    "h": 271.6
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#242F7E
secondary
#B0A44E
accent
#CD49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #242F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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