#242D87#242D87

#242D87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.148 H 271.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#242D87
RGBrgb(36, 45, 135)
HSLhsl(235, 58%, 34%)
HSVhsv(235, 73%, 53%)
CMYKcmyk(73.3%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.67, 28.50, -51.35)
CIE-LCHlch(23.67, 58.72, 299.03°)
OKLaboklab(35.35% 0.0048 -0.1484)
OKLCHoklch(35.35% 0.148 271.8)
XYZxyz(6.0376, 4.0005, 23.3710)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D87 #877E24
analogous
#245E87 #242D87 #4C2487
triadic
#242D87 #87242D #2D8724
tetradic
#242D87 #87245E #877E24 #24874C
square
#242D87 #87245E #877E24 #24874C
split-complementary
#242D87 #874C24 #5E8724
monochromatic
#0A0D26 #171D57 #242D87 #313DB7 #545FD1

Accessibility & contrast

On white

11.67
#242D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242D87
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D87#FFFFFF#000000##FFFFFF
##242D871.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242d87;
/* rgb */ color: rgb(36, 45, 135);
/* oklch */ color: oklch(35.3% 0.148 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e66ab',
    500: '#242d87',
    950: '#000000',
  },
}
SCSS
$custom: #242d87;
$custom-light: #6e66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242d87",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35349,
    "c": 0.14844,
    "h": 271.8
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#242D87
secondary
#B5AC51
accent
#D347E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242D87

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

Preview Lab → · Contrast checker → · Palette generator →

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