#242C87#242C87

#242C87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.150 H 272.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#242C87
RGBrgb(36, 44, 135)
HSLhsl(235, 58%, 34%)
HSVhsv(235, 73%, 53%)
CMYKcmyk(73.3%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.42, 29.16, -51.76)
CIE-LCHlch(23.42, 59.41, 299.40°)
OKLaboklab(35.17% 0.0055 -0.1496)
OKLCHoklch(35.17% 0.15 272.1)
XYZxyz(5.9999, 3.9251, 23.3584)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242C87 #877F24
analogous
#245D87 #242C87 #4D2487
triadic
#242C87 #87242C #2C8724
tetradic
#242C87 #87245D #877F24 #24874D
square
#242C87 #87245D #877F24 #24874D
split-complementary
#242C87 #874D24 #5D8724
monochromatic
#0A0D26 #171C57 #242C87 #313CB7 #545ED1

Accessibility & contrast

On white

11.76
#242C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#242C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242C87
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242C87#FFFFFF#000000##FFFFFF
##242C871.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242c87;
/* rgb */ color: rgb(36, 44, 135);
/* oklch */ color: oklch(35.2% 0.150 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e65ab',
    500: '#242c87',
    950: '#000000',
  },
}
SCSS
$custom: #242c87;
$custom-light: #6e65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242c87",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 235.152,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35166,
    "c": 0.14966,
    "h": 272.1
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#242C87
secondary
#B5AD51
accent
#D547E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242C87

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

Preview Lab → · Contrast checker → · Palette generator →

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