#2A259F#2A259F

#2A259F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.187 H 274.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2A259F
RGBrgb(42, 37, 159)
HSLhsl(242, 62%, 38%)
HSVhsv(242, 77%, 62%)
CMYKcmyk(73.6%, 76.7%, 0%, 37.6%)
CIE-LABlab(24.70, 42.54, -64.47)
CIE-LCHlch(24.70, 77.24, 303.42°)
OKLaboklab(36.92% 0.0132 -0.1865)
OKLCHoklch(36.92% 0.187 274)
XYZxyz(7.8723, 4.3178, 33.2127)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A259F #9A9F25
analogous
#255D9F #2A259F #67259F
triadic
#2A259F #9F2A25 #259F2A
tetradic
#2A259F #9F255D #9A9F25 #259F67
square
#2A259F #9F255D #9A9F25 #259F67
split-complementary
#2A259F #9F6725 #5D9F25
monochromatic
#100E3C #1D196D #2A259F #3832CF #6864DB

Accessibility & contrast

On white

11.27
#2A259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A259F
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A259F#FFFFFF#000000##FFFFFF
##2A259F1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a259f;
/* rgb */ color: rgb(42, 37, 159);
/* oklch */ color: oklch(36.9% 0.187 274.0);
Tailwind
colors: {
  custom: {
    50: '#7762bd',
    500: '#2a259f',
    950: '#000000',
  },
}
SCSS
$custom: #2a259f;
$custom-light: #7762bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a259f",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 242.459,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.18694,
    "h": 274
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#2A259F
secondary
#BCC05F
accent
#E542DF
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A259F

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

Preview Lab → · Contrast checker → · Palette generator →

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