#242A8F#242A8F

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

Color values

HEX#242A8F
RGBrgb(36, 42, 143)
HSLhsl(237, 60%, 35%)
HSVhsv(237, 75%, 56%)
CMYKcmyk(74.8%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.72, 33.40, -56.26)
CIE-LCHlch(23.72, 65.43, 300.70°)
OKLaboklab(35.62% 0.0059 -0.1627)
OKLCHoklch(35.62% 0.163 272.1)
XYZxyz(6.5118, 4.0135, 26.4128)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A8F #8F8924
analogous
#245F8F #242A8F #54248F
triadic
#242A8F #8F242A #2A8F24
tetradic
#242A8F #8F245F #8F8924 #248F54
square
#242A8F #8F245F #8F8924 #248F54
split-complementary
#242A8F #8F5424 #5F8F24
monochromatic
#0B0D2D #181C5E #242A8F #3038C0 #585FD5

Accessibility & contrast

On white

11.65
#242A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242A8F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A8F#FFFFFF#000000##FFFFFF
##242A8F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242a8f;
/* rgb */ color: rgb(36, 42, 143);
/* oklch */ color: oklch(35.6% 0.163 272.1);
Tailwind
colors: {
  custom: {
    50: '#7064b1',
    500: '#242a8f',
    950: '#000000',
  },
}
SCSS
$custom: #242a8f;
$custom-light: #7064b1;
$custom-dark: #000000;
JSON
{
  "hex": "#242a8f",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 236.636,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35616,
    "c": 0.16284,
    "h": 272.1
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #242A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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