#2A249A#2A249A

#2A249A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.182 H 274.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2A249A
RGBrgb(42, 36, 154)
HSLhsl(243, 62%, 37%)
HSVhsv(243, 77%, 60%)
CMYKcmyk(72.7%, 76.6%, 0%, 39.6%)
CIE-LABlab(23.95, 41.44, -62.63)
CIE-LCHlch(23.95, 75.10, 303.49°)
OKLaboklab(36.23% 0.0147 -0.1811)
OKLCHoklch(36.23% 0.182 274.6)
XYZxyz(7.4165, 4.0864, 30.9635)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A249A #949A24
analogous
#24599A #2A249A #65249A
triadic
#2A249A #9A2A24 #249A2A
tetradic
#2A249A #9A2459 #949A24 #249A65
square
#2A249A #9A2459 #949A24 #249A65
split-complementary
#2A249A #9A6524 #599A24
monochromatic
#0F0D37 #1C1868 #2A249A #3830CC #655FDA

Accessibility & contrast

On white

11.55
#2A249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A249A
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A249A#FFFFFF#000000##FFFFFF
##2A249A1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a249a;
/* rgb */ color: rgb(42, 36, 154);
/* oklch */ color: oklch(36.2% 0.182 274.6);
Tailwind
colors: {
  custom: {
    50: '#7661b9',
    500: '#2a249a',
    950: '#000000',
  },
}
SCSS
$custom: #2a249a;
$custom-light: #7661b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a249a",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 243.051,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.18174,
    "h": 274.6
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#2A249A
secondary
#B9BF5B
accent
#E543DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A249A

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

Preview Lab → · Contrast checker → · Palette generator →

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