#242CA6#242CA6

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

Color values

HEX#242CA6
RGBrgb(36, 44, 166)
HSLhsl(236, 64%, 40%)
HSVhsv(236, 78%, 65%)
CMYKcmyk(78.3%, 73.5%, 0%, 34.9%)
CIE-LABlab(26.53, 40.35, -65.70)
CIE-LCHlch(26.53, 77.10, 301.56°)
OKLaboklab(38.35% 0.0018 -0.1902)
OKLCHoklch(38.35% 0.19 270.5)
XYZxyz(8.5088, 4.9287, 36.5719)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242CA6 #A69E24
analogous
#246DA6 #242CA6 #5D24A6
triadic
#242CA6 #A6242C #2CA624
tetradic
#242CA6 #A6246D #A69E24 #24A65D
square
#242CA6 #A6246D #A69E24 #24A65D
split-complementary
#242CA6 #A65D24 #6DA624
monochromatic
#0E1141 #191F74 #242CA6 #343ED3 #666EDE

Accessibility & contrast

On white

10.57
#242CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#242CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242CA6
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242CA6#FFFFFF#000000##FFFFFF
##242CA61.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242ca6;
/* rgb */ color: rgb(36, 44, 166);
/* oklch */ color: oklch(38.3% 0.190 270.5);
Tailwind
colors: {
  custom: {
    50: '#7666c2',
    500: '#242ca6',
    950: '#000000',
  },
}
SCSS
$custom: #242ca6;
$custom-light: #7666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242ca6",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 236.308,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.19025,
    "h": 270.5
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#242CA6
secondary
#C4BE62
accent
#DD40E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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