#2A247C#2A247C

#2A247C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.143 H 278.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2A247C
RGBrgb(42, 36, 124)
HSLhsl(244, 55%, 31%)
HSVhsv(244, 71%, 49%)
CMYKcmyk(66.1%, 71%, 0%, 51.4%)
CIE-LABlab(20.86, 31.20, -49.00)
CIE-LCHlch(20.86, 58.09, 302.49°)
OKLaboklab(33.1% 0.0204 -0.1414)
OKLCHoklch(33.1% 0.143 278.2)
XYZxyz(5.2226, 3.2088, 19.4090)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A247C #767C24
analogous
#244A7C #2A247C #56247C
triadic
#2A247C #7C2A24 #247C2A
tetradic
#2A247C #7C244A #767C24 #247C56
square
#2A247C #7C244A #767C24 #247C56
split-complementary
#2A247C #7C5624 #4A7C24
monochromatic
#0A081D #1A164D #2A247C #3A32AB #574FCC

Accessibility & contrast

On white

12.79
#2A247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A247C
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A247C#FFFFFF#000000##FFFFFF
##2A247C1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a247c;
/* rgb */ color: rgb(42, 36, 124);
/* oklch */ color: oklch(33.1% 0.143 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f5fa3',
    500: '#2a247c',
    950: '#000000',
  },
}
SCSS
$custom: #2a247c;
$custom-light: #6f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a247c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 244.091,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.14282,
    "h": 278.2
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#2A247C
secondary
#A8AE4D
accent
#DE49D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A247C

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

Preview Lab → · Contrast checker → · Palette generator →

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