#242FA6#242FA6

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

Color values

HEX#242FA6
RGBrgb(36, 47, 166)
HSLhsl(235, 64%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(78.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.19, 38.53, -64.61)
CIE-LCHlch(27.19, 75.23, 300.81°)
OKLaboklab(38.82% 0.0004 -0.1871)
OKLCHoklch(38.82% 0.187 270.1)
XYZxyz(8.6247, 5.1603, 36.6105)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242FA6 #A69B24
analogous
#2470A6 #242FA6 #5A24A6
triadic
#242FA6 #A6242F #2FA624
tetradic
#242FA6 #A62470 #A69B24 #24A65A
square
#242FA6 #A62470 #A69B24 #24A65A
split-complementary
#242FA6 #A65A24 #70A624
monochromatic
#0E1341 #192174 #242FA6 #3442D3 #6671DE

Accessibility & contrast

On white

10.33
#242FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#242FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242FA6
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242FA6#FFFFFF#000000##FFFFFF
##242FA61.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242fa6;
/* rgb */ color: rgb(36, 47, 166);
/* oklch */ color: oklch(38.8% 0.187 270.1);
Tailwind
colors: {
  custom: {
    50: '#7668c2',
    500: '#242fa6',
    950: '#000000',
  },
}
SCSS
$custom: #242fa6;
$custom-light: #7668c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242fa6",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 234.923,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.1871,
    "h": 270.1
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#242FA6
secondary
#C4BB62
accent
#D940E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #242FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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