#242AA6#242AA6

#242AA6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.192 H 270.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#242AA6
RGBrgb(36, 42, 166)
HSLhsl(237, 64%, 40%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(78.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.11, 41.53, -66.39)
CIE-LCHlch(26.11, 78.32, 302.03°)
OKLaboklab(38.05% 0.0026 -0.1923)
OKLCHoklch(38.05% 0.192 270.8)
XYZxyz(8.4361, 4.7832, 36.5476)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242AA6 #A6A024
analogous
#246BA6 #242AA6 #5F24A6
triadic
#242AA6 #A6242A #2AA624
tetradic
#242AA6 #A6246B #A6A024 #24A65F
square
#242AA6 #A6246B #A6A024 #24A65F
split-complementary
#242AA6 #A65F24 #6BA624
monochromatic
#0E1141 #191D74 #242AA6 #343CD3 #666CDE

Accessibility & contrast

On white

10.73
#242AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#242AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242AA6
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242AA6#FFFFFF#000000##FFFFFF
##242AA61.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242aa6;
/* rgb */ color: rgb(36, 42, 166);
/* oklch */ color: oklch(38.0% 0.192 270.8);
Tailwind
colors: {
  custom: {
    50: '#7665c2',
    500: '#242aa6',
    950: '#000000',
  },
}
SCSS
$custom: #242aa6;
$custom-light: #7665c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242aa6",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 237.231,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38047,
    "c": 0.19228,
    "h": 270.8
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#242AA6
secondary
#C4BF62
accent
#E040E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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