#242A8A#242A8A

#242A8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.156 H 272.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#242A8A
RGBrgb(36, 42, 138)
HSLhsl(236, 59%, 34%)
HSVhsv(236, 74%, 54%)
CMYKcmyk(73.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.22, 31.58, -53.96)
CIE-LCHlch(23.22, 62.52, 300.34°)
OKLaboklab(35.11% 0.0065 -0.156)
OKLCHoklch(35.11% 0.156 272.4)
XYZxyz(6.1414, 3.8654, 24.4623)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A8A #8A8424
analogous
#245D8A #242A8A #51248A
triadic
#242A8A #8A242A #2A8A24
tetradic
#242A8A #8A245D #8A8424 #248A51
square
#242A8A #8A245D #8A8424 #248A51
split-complementary
#242A8A #8A5124 #5D8A24
monochromatic
#0B0C29 #171B59 #242A8A #3139BB #565DD3

Accessibility & contrast

On white

11.84
#242A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A8A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A8A#FFFFFF#000000##FFFFFF
##242A8A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242a8a;
/* rgb */ color: rgb(36, 42, 138);
/* oklch */ color: oklch(35.1% 0.156 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f64ad',
    500: '#242a8a',
    950: '#000000',
  },
}
SCSS
$custom: #242a8a;
$custom-light: #6f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#242a8a",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 236.471,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35108,
    "c": 0.15616,
    "h": 272.4
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#242A8A
secondary
#B7B153
accent
#D946E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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