#2A247A#2A247A

#2A247A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.140 H 278.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2A247A
RGBrgb(42, 36, 122)
HSLhsl(244, 54%, 31%)
HSVhsv(244, 70%, 48%)
CMYKcmyk(65.6%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.67, 30.50, -48.05)
CIE-LCHlch(20.67, 56.91, 302.41°)
OKLaboklab(32.9% 0.0207 -0.1386)
OKLCHoklch(32.9% 0.14 278.5)
XYZxyz(5.0974, 3.1587, 18.7497)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A247A #747A24
analogous
#24497A #2A247A #55247A
triadic
#2A247A #7A2A24 #247A2A
tetradic
#2A247A #7A2449 #747A24 #247A55
square
#2A247A #7A2449 #747A24 #247A55
split-complementary
#2A247A #7A5524 #497A24
monochromatic
#09081B #1A164B #2A247A #3A32A9 #564ECB

Accessibility & contrast

On white

12.87
#2A247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A247A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A247A#FFFFFF#000000##FFFFFF
##2A247A1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a247a;
/* rgb */ color: rgb(42, 36, 122);
/* oklch */ color: oklch(32.9% 0.140 278.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fa1',
    500: '#2a247a',
    950: '#000000',
  },
}
SCSS
$custom: #2a247a;
$custom-light: #6e5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a247a",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 244.186,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32899,
    "c": 0.1401,
    "h": 278.5
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#2A247A
secondary
#A6AC4D
accent
#DE4AD3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A247A

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

Preview Lab → · Contrast checker → · Palette generator →

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