#242EA8#242EA8

#242EA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.191 H 270.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#242EA8
RGBrgb(36, 46, 168)
HSLhsl(235, 65%, 40%)
HSVhsv(235, 79%, 66%)
CMYKcmyk(78.6%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.17, 39.85, -65.84)
CIE-LCHlch(27.17, 76.96, 301.18°)
OKLaboklab(38.87% 0.0006 -0.1907)
OKLCHoklch(38.87% 0.191 270.2)
XYZxyz(8.7700, 5.1552, 37.5710)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242EA8 #A89E24
analogous
#2470A8 #242EA8 #5C24A8
triadic
#242EA8 #A8242E #2EA824
tetradic
#242EA8 #A82470 #A89E24 #24A85C
square
#242EA8 #A82470 #A89E24 #24A85C
split-complementary
#242EA8 #A85C24 #70A824
monochromatic
#0E1243 #192076 #242EA8 #3541D4 #6871DF

Accessibility & contrast

On white

10.34
#242EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#242EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242EA8
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242EA8#FFFFFF#000000##FFFFFF
##242EA81.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242ea8;
/* rgb */ color: rgb(36, 46, 168);
/* oklch */ color: oklch(38.9% 0.191 270.2);
Tailwind
colors: {
  custom: {
    50: '#7668c3',
    500: '#242ea8',
    950: '#000000',
  },
}
SCSS
$custom: #242ea8;
$custom-light: #7668c3;
$custom-dark: #000000;
JSON
{
  "hex": "#242ea8",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 235.455,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.19068,
    "h": 270.2
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#242EA8
secondary
#C4BD63
accent
#DB40E8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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