#242A82#242A82

#242A82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.145 H 272.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#242A82
RGBrgb(36, 42, 130)
HSLhsl(236, 57%, 33%)
HSVhsv(236, 72%, 51%)
CMYKcmyk(72.3%, 67.7%, 0%, 49%)
CIE-LABlab(22.45, 28.63, -50.21)
CIE-LCHlch(22.45, 57.80, 299.69°)
OKLaboklab(34.31% 0.0073 -0.1451)
OKLCHoklch(34.31% 0.145 272.9)
XYZxyz(5.5834, 3.6422, 21.5235)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A82 #827C24
analogous
#245982 #242A82 #4D2482
triadic
#242A82 #82242A #2A8224
tetradic
#242A82 #822459 #827C24 #24824D
square
#242A82 #822459 #827C24 #24824D
split-complementary
#242A82 #824D24 #598224
monochromatic
#090B22 #171B52 #242A82 #3139B2 #5159CF

Accessibility & contrast

On white

12.15
#242A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#242A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A82
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A82#FFFFFF#000000##FFFFFF
##242A821.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242a82;
/* rgb */ color: rgb(36, 42, 130);
/* oklch */ color: oklch(34.3% 0.145 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d63a7',
    500: '#242a82',
    950: '#000000',
  },
}
SCSS
$custom: #242a82;
$custom-light: #6d63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#242a82",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 236.17,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34313,
    "c": 0.14523,
    "h": 272.9
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#242A82
secondary
#B3AD4F
accent
#D648E0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242A82

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

Preview Lab → · Contrast checker → · Palette generator →

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