#242F75#242F75

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

Color values

HEX#242F75
RGBrgb(36, 47, 117)
HSLhsl(232, 53%, 30%)
HSVhsv(232, 69%, 46%)
CMYKcmyk(69.2%, 59.8%, 0%, 54.1%)
CIE-LABlab(22.63, 20.28, -41.68)
CIE-LCHlch(22.63, 46.35, 295.94°)
OKLaboklab(34.09% 0.0036 -0.12)
OKLCHoklch(34.09% 0.12 271.7)
XYZxyz(4.9539, 3.6920, 17.2777)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F75 #756A24
analogous
#245775 #242F75 #422475
triadic
#242F75 #75242F #2F7524
tetradic
#242F75 #752457 #756A24 #247542
square
#242F75 #752457 #756A24 #247542
split-complementary
#242F75 #754224 #577524
monochromatic
#070917 #161C46 #242F75 #3242A4 #4C5CC8

Accessibility & contrast

On white

12.08
#242F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F75
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F75#FFFFFF#000000##FFFFFF
##242F751.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242f75;
/* rgb */ color: rgb(36, 47, 117);
/* oklch */ color: oklch(34.1% 0.120 271.7);
Tailwind
colors: {
  custom: {
    50: '#69679d',
    500: '#242f75',
    950: '#000000',
  },
}
SCSS
$custom: #242f75;
$custom-light: #69679d;
$custom-dark: #000000;
JSON
{
  "hex": "#242f75",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 231.852,
    "s": 52.941,
    "l": 30
  },
  "oklch": {
    "l": 0.34085,
    "c": 0.12002,
    "h": 271.7
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#242F75
secondary
#A89B4D
accent
#C94BDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #242F75

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

Preview Lab → · Contrast checker → · Palette generator →

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