#2A249B#2A249B

#2A249B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.183 H 274.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2A249B
RGBrgb(42, 36, 155)
HSLhsl(243, 62%, 37%)
HSVhsv(243, 77%, 61%)
CMYKcmyk(72.9%, 76.8%, 0%, 39.2%)
CIE-LABlab(24.06, 41.77, -63.07)
CIE-LCHlch(24.06, 75.65, 303.52°)
OKLaboklab(36.34% 0.0145 -0.1824)
OKLCHoklch(36.34% 0.183 274.5)
XYZxyz(7.5002, 4.1198, 31.4039)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A249B #959B24
analogous
#245A9B #2A249B #65249B
triadic
#2A249B #9B2A24 #249B2A
tetradic
#2A249B #9B245A #959B24 #249B65
square
#2A249B #9B245A #959B24 #249B65
split-complementary
#2A249B #9B6524 #5A9B24
monochromatic
#0F0D38 #1D1869 #2A249B #3730CD #665FDA

Accessibility & contrast

On white

11.51
#2A249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A249B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A249B#FFFFFF#000000##FFFFFF
##2A249B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a249b;
/* rgb */ color: rgb(42, 36, 155);
/* oklch */ color: oklch(36.3% 0.183 274.5);
Tailwind
colors: {
  custom: {
    50: '#7661ba',
    500: '#2a249b',
    950: '#000000',
  },
}
SCSS
$custom: #2a249b;
$custom-light: #7661ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a249b",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 243.025,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.18297,
    "h": 274.5
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#2A249B
secondary
#BABF5C
accent
#E542DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A249B

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

Preview Lab → · Contrast checker → · Palette generator →

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