#242EA1#242EA1

#242EA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.182 H 270.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#242EA1
RGBrgb(36, 46, 161)
HSLhsl(235, 63%, 39%)
HSVhsv(235, 78%, 63%)
CMYKcmyk(77.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(26.45, 37.37, -62.80)
CIE-LCHlch(26.45, 73.07, 300.76°)
OKLaboklab(38.14% 0.0015 -0.1818)
OKLCHoklch(38.14% 0.182 270.5)
XYZxyz(8.1354, 4.9014, 34.2286)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242EA1 #A19724
analogous
#246CA1 #242EA1 #5824A1
triadic
#242EA1 #A1242E #2EA124
tetradic
#242EA1 #A1246C #A19724 #24A158
square
#242EA1 #A1246C #A19724 #24A158
split-complementary
#242EA1 #A15824 #6CA124
monochromatic
#0E113D #19206F #242EA1 #313ED1 #636DDC

Accessibility & contrast

On white

10.60
#242EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#242EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242EA1
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242EA1#FFFFFF#000000##FFFFFF
##242EA11.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242ea1;
/* rgb */ color: rgb(36, 46, 161);
/* oklch */ color: oklch(38.1% 0.182 270.5);
Tailwind
colors: {
  custom: {
    50: '#7467be',
    500: '#242ea1',
    950: '#000000',
  },
}
SCSS
$custom: #242ea1;
$custom-light: #7467be;
$custom-dark: #000000;
JSON
{
  "hex": "#242ea1",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 235.2,
    "s": 63.452,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.18182,
    "h": 270.5
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#242EA1
secondary
#C2BA5F
accent
#D941E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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