#242C8A#242C8A

#242C8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.154 H 271.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#242C8A
RGBrgb(36, 44, 138)
HSLhsl(235, 59%, 34%)
HSVhsv(235, 74%, 54%)
CMYKcmyk(73.9%, 68.1%, 0%, 45.9%)
CIE-LABlab(23.71, 30.28, -53.16)
CIE-LCHlch(23.71, 61.18, 299.66°)
OKLaboklab(35.46% 0.0052 -0.1537)
OKLCHoklch(35.46% 0.154 271.9)
XYZxyz(6.2141, 4.0108, 24.4865)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242C8A #8A8224
analogous
#245F8A #242C8A #4F248A
triadic
#242C8A #8A242C #2C8A24
tetradic
#242C8A #8A245F #8A8224 #248A4F
square
#242C8A #8A245F #8A8224 #248A4F
split-complementary
#242C8A #8A4F24 #5F8A24
monochromatic
#0B0D29 #171D59 #242C8A #313BBB #565FD3

Accessibility & contrast

On white

11.65
#242C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#242C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242C8A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242C8A#FFFFFF#000000##FFFFFF
##242C8A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242c8a;
/* rgb */ color: rgb(36, 44, 138);
/* oklch */ color: oklch(35.5% 0.154 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f65ad',
    500: '#242c8a',
    950: '#000000',
  },
}
SCSS
$custom: #242c8a;
$custom-light: #6f65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#242c8a",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 235.294,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35461,
    "c": 0.15377,
    "h": 271.9
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#242C8A
secondary
#B7AF53
accent
#D646E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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