#242EA6#242EA6

#242EA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.188 H 270.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#242EA6
RGBrgb(36, 46, 166)
HSLhsl(235, 64%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(78.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(26.97, 39.14, -64.98)
CIE-LCHlch(26.97, 75.86, 301.07°)
OKLaboklab(38.66% 0.0009 -0.1882)
OKLCHoklch(38.66% 0.188 270.3)
XYZxyz(8.5851, 5.0813, 36.5973)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242EA6 #A69C24
analogous
#246FA6 #242EA6 #5B24A6
triadic
#242EA6 #A6242E #2EA624
tetradic
#242EA6 #A6246F #A69C24 #24A65B
square
#242EA6 #A6246F #A69C24 #24A65B
split-complementary
#242EA6 #A65B24 #6FA624
monochromatic
#0E1241 #192074 #242EA6 #3440D3 #6670DE

Accessibility & contrast

On white

10.41
#242EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242EA6
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242EA6#FFFFFF#000000##FFFFFF
##242EA61.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242ea6;
/* rgb */ color: rgb(36, 46, 166);
/* oklch */ color: oklch(38.7% 0.188 270.3);
Tailwind
colors: {
  custom: {
    50: '#7667c2',
    500: '#242ea6',
    950: '#000000',
  },
}
SCSS
$custom: #242ea6;
$custom-light: #7667c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242ea6",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 235.385,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38659,
    "c": 0.18817,
    "h": 270.3
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#242EA6
secondary
#C4BC62
accent
#DB40E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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