#2A247D#2A247D

#2A247D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.144 H 278.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2A247D
RGBrgb(42, 36, 125)
HSLhsl(244, 55%, 32%)
HSVhsv(244, 71%, 49%)
CMYKcmyk(66.4%, 71.2%, 0%, 51%)
CIE-LABlab(20.96, 31.55, -49.48)
CIE-LCHlch(20.96, 58.68, 302.52°)
OKLaboklab(33.2% 0.0202 -0.1427)
OKLCHoklch(33.2% 0.144 278.1)
XYZxyz(5.2862, 3.2342, 19.7438)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A247D #777D24
analogous
#244B7D #2A247D #57247D
triadic
#2A247D #7D2A24 #247D2A
tetradic
#2A247D #7D244B #777D24 #247D57
square
#2A247D #7D244B #777D24 #247D57
split-complementary
#2A247D #7D5724 #4B7D24
monochromatic
#0A091E #1A164D #2A247D #3A32AD #584FCC

Accessibility & contrast

On white

12.75
#2A247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A247D
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A247D#FFFFFF#000000##FFFFFF
##2A247D1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a247d;
/* rgb */ color: rgb(42, 36, 125);
/* oklch */ color: oklch(33.2% 0.144 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f5fa4',
    500: '#2a247d',
    950: '#000000',
  },
}
SCSS
$custom: #2a247d;
$custom-light: #6f5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a247d",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 244.045,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33197,
    "c": 0.14418,
    "h": 278.1
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#2A247D
secondary
#A9AF4D
accent
#DF49D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A247D

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

Preview Lab → · Contrast checker → · Palette generator →

#2A247D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva