#2A259B#2A259B

#2A259B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.182 H 274.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2A259B
RGBrgb(42, 37, 155)
HSLhsl(243, 61%, 38%)
HSVhsv(243, 76%, 61%)
CMYKcmyk(72.9%, 76.1%, 0%, 39.2%)
CIE-LABlab(24.26, 41.21, -62.74)
CIE-LCHlch(24.26, 75.06, 303.30°)
OKLaboklab(36.48% 0.014 -0.1815)
OKLCHoklch(36.48% 0.182 274.4)
XYZxyz(7.5308, 4.1812, 31.4142)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A259B #969B25
analogous
#255B9B #2A259B #65259B
triadic
#2A259B #9B2A25 #259B2A
tetradic
#2A259B #9B255B #969B25 #259B65
square
#2A259B #9B255B #969B25 #259B65
split-complementary
#2A259B #9B6525 #5B9B25
monochromatic
#0F0D38 #1D196A #2A259B #3731CC #6661D9

Accessibility & contrast

On white

11.44
#2A259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A259B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A259B#FFFFFF#000000##FFFFFF
##2A259B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a259b;
/* rgb */ color: rgb(42, 37, 155);
/* oklch */ color: oklch(36.5% 0.182 274.4);
Tailwind
colors: {
  custom: {
    50: '#7661ba',
    500: '#2a259b',
    950: '#000000',
  },
}
SCSS
$custom: #2a259b;
$custom-light: #7661ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a259b",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 242.542,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36481,
    "c": 0.182,
    "h": 274.4
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#2A259B
secondary
#BABF5D
accent
#E543DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A259B

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

Preview Lab → · Contrast checker → · Palette generator →

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