#242E87#242E87

#242E87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.147 H 271.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#242E87
RGBrgb(36, 46, 135)
HSLhsl(234, 58%, 34%)
HSVhsv(234, 73%, 53%)
CMYKcmyk(73.3%, 65.9%, 0%, 47.1%)
CIE-LABlab(23.93, 27.83, -50.93)
CIE-LCHlch(23.93, 58.04, 298.65°)
OKLaboklab(35.53% 0.004 -0.1471)
OKLCHoklch(35.53% 0.147 271.6)
XYZxyz(6.0762, 4.0777, 23.3838)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E87 #877D24
analogous
#245F87 #242E87 #4B2487
triadic
#242E87 #87242E #2E8724
tetradic
#242E87 #87245F #877D24 #24874B
square
#242E87 #87245F #877D24 #24874B
split-complementary
#242E87 #874B24 #5F8724
monochromatic
#0A0D26 #171E57 #242E87 #313EB7 #5461D1

Accessibility & contrast

On white

11.57
#242E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#242E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E87
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E87#FFFFFF#000000##FFFFFF
##242E871.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242e87;
/* rgb */ color: rgb(36, 46, 135);
/* oklch */ color: oklch(35.5% 0.147 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e66ab',
    500: '#242e87',
    950: '#000000',
  },
}
SCSS
$custom: #242e87;
$custom-light: #6e66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242e87",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 233.939,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35535,
    "c": 0.14719,
    "h": 271.6
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#242E87
secondary
#B5AB51
accent
#D247E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242E87

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

Preview Lab → · Contrast checker → · Palette generator →

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