#2A259E#2A259E

#2A259E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.186 H 274.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A259E
RGBrgb(42, 37, 158)
HSLhsl(242, 62%, 38%)
HSVhsv(242, 77%, 62%)
CMYKcmyk(73.4%, 76.6%, 0%, 38%)
CIE-LABlab(24.59, 42.21, -64.04)
CIE-LCHlch(24.59, 76.70, 303.39°)
OKLaboklab(36.81% 0.0134 -0.1852)
OKLCHoklch(36.81% 0.186 274.1)
XYZxyz(7.7859, 4.2832, 32.7575)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A259E #999E25
analogous
#255C9E #2A259E #66259E
triadic
#2A259E #9E2A25 #259E2A
tetradic
#2A259E #9E255C #999E25 #259E66
square
#2A259E #9E255C #999E25 #259E66
split-complementary
#2A259E #9E6625 #5C9E25
monochromatic
#100E3B #1D196C #2A259E #3831CF #6863DA

Accessibility & contrast

On white

11.31
#2A259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A259E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A259E#FFFFFF#000000##FFFFFF
##2A259E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a259e;
/* rgb */ color: rgb(42, 37, 158);
/* oklch */ color: oklch(36.8% 0.186 274.1);
Tailwind
colors: {
  custom: {
    50: '#7762bc',
    500: '#2a259e',
    950: '#000000',
  },
}
SCSS
$custom: #2a259e;
$custom-light: #7762bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a259e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 242.479,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.18571,
    "h": 274.1
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A259E

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

Preview Lab → · Contrast checker → · Palette generator →

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