#2A259C#2A259C

#2A259C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.183 H 274.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2A259C
RGBrgb(42, 37, 156)
HSLhsl(243, 62%, 38%)
HSVhsv(243, 76%, 61%)
CMYKcmyk(73.1%, 76.3%, 0%, 38.8%)
CIE-LABlab(24.37, 41.54, -63.17)
CIE-LCHlch(24.37, 75.61, 303.33°)
OKLaboklab(36.59% 0.0138 -0.1827)
OKLCHoklch(36.59% 0.183 274.3)
XYZxyz(7.6152, 4.2149, 31.8583)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A259C #979C25
analogous
#255B9C #2A259C #65259C
triadic
#2A259C #9C2A25 #259C2A
tetradic
#2A259C #9C255B #979C25 #259C65
square
#2A259C #9C255B #979C25 #259C65
split-complementary
#2A259C #9C6525 #5B9C25
monochromatic
#0F0E39 #1D196B #2A259C #3731CD #6762DA

Accessibility & contrast

On white

11.39
#2A259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A259C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A259C#FFFFFF#000000##FFFFFF
##2A259C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a259c;
/* rgb */ color: rgb(42, 37, 156);
/* oklch */ color: oklch(36.6% 0.183 274.3);
Tailwind
colors: {
  custom: {
    50: '#7662ba',
    500: '#2a259c',
    950: '#000000',
  },
}
SCSS
$custom: #2a259c;
$custom-light: #7662ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a259c",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 242.521,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.18324,
    "h": 274.3
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A259C

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

Preview Lab → · Contrast checker → · Palette generator →

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