#2A259A#2A259A

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

Color values

HEX#2A259A
RGBrgb(42, 37, 154)
HSLhsl(243, 61%, 37%)
HSVhsv(243, 76%, 60%)
CMYKcmyk(72.7%, 76%, 0%, 39.6%)
CIE-LABlab(24.15, 40.88, -62.30)
CIE-LCHlch(24.15, 74.52, 303.27°)
OKLaboklab(36.37% 0.0142 -0.1802)
OKLCHoklch(36.37% 0.181 274.5)
XYZxyz(7.4472, 4.1477, 30.9737)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A259A #959A25
analogous
#255B9A #2A259A #64259A
triadic
#2A259A #9A2A25 #259A2A
tetradic
#2A259A #9A255B #959A25 #259A64
square
#2A259A #9A255B #959A25 #259A64
split-complementary
#2A259A #9A6425 #5B9A25
monochromatic
#0F0D37 #1D1969 #2A259A #3731CB #6660D9

Accessibility & contrast

On white

11.48
#2A259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A259A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A259A#FFFFFF#000000##FFFFFF
##2A259A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a259a;
/* rgb */ color: rgb(42, 37, 154);
/* oklch */ color: oklch(36.4% 0.181 274.5);
Tailwind
colors: {
  custom: {
    50: '#7661b9',
    500: '#2a259a',
    950: '#000000',
  },
}
SCSS
$custom: #2a259a;
$custom-light: #7661b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a259a",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 242.564,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36373,
    "c": 0.18075,
    "h": 274.5
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#2A259A
secondary
#BABE5D
accent
#E443DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A259A

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

Preview Lab → · Contrast checker → · Palette generator →

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