#2A2896#2A2896

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

Color values

HEX#2A2896
RGBrgb(42, 40, 150)
HSLhsl(241, 58%, 37%)
HSVhsv(241, 73%, 59%)
CMYKcmyk(72%, 73.3%, 0%, 41.2%)
CIE-LABlab(24.36, 37.77, -59.51)
CIE-LCHlch(24.36, 70.49, 302.40°)
OKLaboklab(36.39% 0.0133 -0.1721)
OKLCHoklch(36.39% 0.173 274.4)
XYZxyz(7.2168, 4.2111, 29.2807)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2896 #949628
analogous
#285D96 #2A2896 #612896
triadic
#2A2896 #962A28 #28962A
tetradic
#2A2896 #96285D #949628 #289661
square
#2A2896 #96285D #949628 #289661
split-complementary
#2A2896 #966128 #5D9628
monochromatic
#0F0E35 #1C1B66 #2A2896 #3835C6 #6563D5

Accessibility & contrast

On white

11.40
#2A2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2896
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2896#FFFFFF#000000##FFFFFF
##2A28961.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2896;
/* rgb */ color: rgb(42, 40, 150);
/* oklch */ color: oklch(36.4% 0.173 274.4);
Tailwind
colors: {
  custom: {
    50: '#7463b6',
    500: '#2a2896',
    950: '#000000',
  },
}
SCSS
$custom: #2a2896;
$custom-light: #7463b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2896",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 241.091,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.17258,
    "h": 274.4
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#2A2896
secondary
#B9BB5F
accent
#E147DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2A2896

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

Preview Lab → · Contrast checker → · Palette generator →

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