#242AAC#242AAC

#242AAC is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.200 H 270.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#242AAC
RGBrgb(36, 42, 172)
HSLhsl(237, 65%, 41%)
HSVhsv(237, 79%, 67%)
CMYKcmyk(79.1%, 75.6%, 0%, 32.5%)
CIE-LABlab(26.76, 43.59, -68.94)
CIE-LCHlch(26.76, 81.56, 302.30°)
OKLaboklab(38.7% 0.0016 -0.1996)
OKLCHoklch(38.7% 0.2 270.5)
XYZxyz(8.9994, 5.0085, 39.5142)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242AAC #ACA624
analogous
#246EAC #242AAC #6224AC
triadic
#242AAC #AC242A #2AAC24
tetradic
#242AAC #AC246E #ACA624 #24AC62
square
#242AAC #AC246E #ACA624 #24AC62
split-complementary
#242AAC #AC6224 #6EAC24
monochromatic
#0F1147 #191E79 #242AAC #383FD5 #6A70E0

Accessibility & contrast

On white

10.49
#242AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#242AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242AAC
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242AAC#FFFFFF#000000##FFFFFF
##242AAC1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0038AA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242aac;
/* rgb */ color: rgb(36, 42, 172);
/* oklch */ color: oklch(38.7% 0.200 270.5);
Tailwind
colors: {
  custom: {
    50: '#7865c6',
    500: '#242aac',
    950: '#000000',
  },
}
SCSS
$custom: #242aac;
$custom-light: #7865c6;
$custom-dark: #000000;
JSON
{
  "hex": "#242aac",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 237.353,
    "s": 65.385,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38702,
    "c": 0.19965,
    "h": 270.5
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#242AAC
secondary
#C6C266
accent
#E13FE8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #242AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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