#2A247B#2A247B

#2A247B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.141 H 278.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2A247B
RGBrgb(42, 36, 123)
HSLhsl(244, 55%, 31%)
HSVhsv(244, 71%, 48%)
CMYKcmyk(65.9%, 70.7%, 0%, 51.8%)
CIE-LABlab(20.76, 30.85, -48.53)
CIE-LCHlch(20.76, 57.50, 302.45°)
OKLaboklab(33% 0.0206 -0.14)
OKLCHoklch(33% 0.141 278.4)
XYZxyz(5.1597, 3.1836, 19.0777)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A247B #757B24
analogous
#24497B #2A247B #55247B
triadic
#2A247B #7B2A24 #247B2A
tetradic
#2A247B #7B2449 #757B24 #247B55
square
#2A247B #7B2449 #757B24 #247B55
split-complementary
#2A247B #7B5524 #497B24
monochromatic
#0A081C #1A164C #2A247B #3A32AA #574ECB

Accessibility & contrast

On white

12.83
#2A247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A247B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A247B#FFFFFF#000000##FFFFFF
##2A247B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a247b;
/* rgb */ color: rgb(42, 36, 123);
/* oklch */ color: oklch(33.0% 0.141 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f5fa2',
    500: '#2a247b',
    950: '#000000',
  },
}
SCSS
$custom: #2a247b;
$custom-light: #6f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a247b",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 244.138,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32998,
    "c": 0.14146,
    "h": 278.4
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#2A247B
secondary
#A7AD4D
accent
#DE4AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A247B

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

Preview Lab → · Contrast checker → · Palette generator →

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