#242A89#242A89

#242A89 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.155 H 272.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#242A89
RGBrgb(36, 42, 137)
HSLhsl(236, 58%, 34%)
HSVhsv(236, 74%, 54%)
CMYKcmyk(73.7%, 69.3%, 0%, 46.3%)
CIE-LABlab(23.12, 31.22, -53.50)
CIE-LCHlch(23.12, 61.94, 300.26°)
OKLaboklab(35.01% 0.0066 -0.1547)
OKLCHoklch(35.01% 0.155 272.5)
XYZxyz(6.0694, 3.8365, 24.0827)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A89 #898324
analogous
#245D89 #242A89 #512489
triadic
#242A89 #89242A #2A8924
tetradic
#242A89 #89245D #898324 #248951
square
#242A89 #89245D #898324 #248951
split-complementary
#242A89 #895124 #5D8924
monochromatic
#0B0C28 #171B59 #242A89 #3139B9 #555CD2

Accessibility & contrast

On white

11.88
#242A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242A89
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A89#FFFFFF#000000##FFFFFF
##242A891.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242a89;
/* rgb */ color: rgb(36, 42, 137);
/* oklch */ color: oklch(35.0% 0.155 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f64ac',
    500: '#242a89',
    950: '#000000',
  },
}
SCSS
$custom: #242a89;
$custom-light: #6f64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242a89",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 236.436,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.1548,
    "h": 272.5
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#242A89
secondary
#B7B152
accent
#D846E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242A89

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

Preview Lab → · Contrast checker → · Palette generator →

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