#242A8E#242A8E

#242A8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.162 H 272.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#242A8E
RGBrgb(36, 42, 142)
HSLhsl(237, 60%, 35%)
HSVhsv(237, 75%, 56%)
CMYKcmyk(74.6%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.62, 33.04, -55.80)
CIE-LCHlch(23.62, 64.85, 300.63°)
OKLaboklab(35.51% 0.0061 -0.1614)
OKLCHoklch(35.51% 0.162 272.1)
XYZxyz(6.4364, 3.9833, 26.0156)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A8E #8E8824
analogous
#245F8E #242A8E #53248E
triadic
#242A8E #8E242A #2A8E24
tetradic
#242A8E #8E245F #8E8824 #248E53
square
#242A8E #8E245F #8E8824 #248E53
split-complementary
#242A8E #8E5324 #5F8E24
monochromatic
#0B0D2C #181C5D #242A8E #3038BF #585FD5

Accessibility & contrast

On white

11.69
#242A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#242A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A8E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A8E#FFFFFF#000000##FFFFFF
##242A8E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242a8e;
/* rgb */ color: rgb(36, 42, 142);
/* oklch */ color: oklch(35.5% 0.162 272.1);
Tailwind
colors: {
  custom: {
    50: '#7064b0',
    500: '#242a8e',
    950: '#000000',
  },
}
SCSS
$custom: #242a8e;
$custom-light: #7064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#242a8e",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 236.604,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35514,
    "c": 0.16151,
    "h": 272.1
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#242A8E
secondary
#B9B355
accent
#DA45E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #242A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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