#242EA7#242EA7

#242EA7 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.189 H 270.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#242EA7
RGBrgb(36, 46, 167)
HSLhsl(235, 65%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(78.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.07, 39.50, -65.41)
CIE-LCHlch(27.07, 76.41, 301.13°)
OKLaboklab(38.76% 0.0008 -0.1894)
OKLCHoklch(38.76% 0.189 270.2)
XYZxyz(8.6772, 5.1181, 37.0823)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242EA7 #A79D24
analogous
#246FA7 #242EA7 #5C24A7
triadic
#242EA7 #A7242E #2EA724
tetradic
#242EA7 #A7246F #A79D24 #24A75C
square
#242EA7 #A7246F #A79D24 #24A75C
split-complementary
#242EA7 #A75C24 #6FA724
monochromatic
#0E1242 #192075 #242EA7 #3541D3 #6770DE

Accessibility & contrast

On white

10.38
#242EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#242EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242EA7
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242EA7#FFFFFF#000000##FFFFFF
##242EA71.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242ea7;
/* rgb */ color: rgb(36, 46, 167);
/* oklch */ color: oklch(38.8% 0.189 270.2);
Tailwind
colors: {
  custom: {
    50: '#7667c2',
    500: '#242ea7',
    950: '#000000',
  },
}
SCSS
$custom: #242ea7;
$custom-light: #7667c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242ea7",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 235.42,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38764,
    "c": 0.18943,
    "h": 270.2
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #242EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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