#242C8F#242C8F

#242C8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.161 H 271.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#242C8F
RGBrgb(36, 44, 143)
HSLhsl(236, 60%, 35%)
HSVhsv(236, 75%, 56%)
CMYKcmyk(74.8%, 69.2%, 0%, 43.9%)
CIE-LABlab(24.19, 32.12, -55.48)
CIE-LCHlch(24.19, 64.11, 300.07°)
OKLaboklab(35.96% 0.0047 -0.1604)
OKLCHoklch(35.96% 0.161 271.7)
XYZxyz(6.5845, 4.1589, 26.4370)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242C8F #8F8724
analogous
#24618F #242C8F #51248F
triadic
#242C8F #8F242C #2C8F24
tetradic
#242C8F #8F2461 #8F8724 #248F51
square
#242C8F #8F2461 #8F8724 #248F51
split-complementary
#242C8F #8F5124 #618F24
monochromatic
#0B0E2D #181D5E #242C8F #303BC0 #5862D5

Accessibility & contrast

On white

11.46
#242C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#242C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242C8F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242C8F#FFFFFF#000000##FFFFFF
##242C8F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242c8f;
/* rgb */ color: rgb(36, 44, 143);
/* oklch */ color: oklch(36.0% 0.161 271.7);
Tailwind
colors: {
  custom: {
    50: '#7065b1',
    500: '#242c8f',
    950: '#000000',
  },
}
SCSS
$custom: #242c8f;
$custom-light: #7065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#242c8f",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 235.514,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35959,
    "c": 0.16052,
    "h": 271.7
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#242C8F
secondary
#B9B255
accent
#D745E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #242C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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