#242AA5#242AA5

#242AA5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.191 H 270.8°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#242AA5
RGBrgb(36, 42, 165)
HSLhsl(237, 64%, 39%)
HSVhsv(237, 78%, 65%)
CMYKcmyk(78.2%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.00, 41.19, -65.97)
CIE-LCHlch(26.00, 77.77, 301.98°)
OKLaboklab(37.94% 0.0028 -0.191)
OKLCHoklch(37.94% 0.191 270.8)
XYZxyz(8.3447, 4.7467, 36.0664)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242AA5 #A59F24
analogous
#246BA5 #242AA5 #5E24A5
triadic
#242AA5 #A5242A #2AA524
tetradic
#242AA5 #A5246B #A59F24 #24A55E
square
#242AA5 #A5246B #A59F24 #24A55E
split-complementary
#242AA5 #A55E24 #6BA524
monochromatic
#0E1041 #191D73 #242AA5 #343BD3 #666BDE

Accessibility & contrast

On white

10.77
#242AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#242AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242AA5
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242AA5#FFFFFF#000000##FFFFFF
##242AA51.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #242aa5;
/* rgb */ color: rgb(36, 42, 165);
/* oklch */ color: oklch(37.9% 0.191 270.8);
Tailwind
colors: {
  custom: {
    50: '#7665c1',
    500: '#242aa5',
    950: '#000000',
  },
}
SCSS
$custom: #242aa5;
$custom-light: #7665c1;
$custom-dark: #000000;
JSON
{
  "hex": "#242aa5",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 237.209,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37938,
    "c": 0.19104,
    "h": 270.8
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#242AA5
secondary
#C3BF62
accent
#DF41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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