#242FA7#242FA7

#242FA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.188 H 270.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#242FA7
RGBrgb(36, 47, 167)
HSLhsl(235, 65%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(78.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.29, 38.89, -65.05)
CIE-LCHlch(27.29, 75.79, 300.87°)
OKLaboklab(38.92% 0.0003 -0.1884)
OKLCHoklch(38.92% 0.188 270.1)
XYZxyz(8.7167, 5.1971, 37.0955)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242FA7 #A79C24
analogous
#2470A7 #242FA7 #5B24A7
triadic
#242FA7 #A7242F #2FA724
tetradic
#242FA7 #A72470 #A79C24 #24A75B
square
#242FA7 #A72470 #A79C24 #24A75B
split-complementary
#242FA7 #A75B24 #70A724
monochromatic
#0E1342 #192175 #242FA7 #3542D3 #6771DE

Accessibility & contrast

On white

10.30
#242FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#242FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242FA7
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242FA7#FFFFFF#000000##FFFFFF
##242FA71.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242fa7;
/* rgb */ color: rgb(36, 47, 167);
/* oklch */ color: oklch(38.9% 0.188 270.1);
Tailwind
colors: {
  custom: {
    50: '#7668c2',
    500: '#242fa7',
    950: '#000000',
  },
}
SCSS
$custom: #242fa7;
$custom-light: #7668c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242fa7",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 234.962,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38923,
    "c": 0.18837,
    "h": 270.1
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#242FA7
secondary
#C4BC63
accent
#D940E8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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