#2A229B#2A229B

#2A229B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.185 H 274.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2A229B
RGBrgb(42, 34, 155)
HSLhsl(244, 64%, 37%)
HSVhsv(244, 78%, 61%)
CMYKcmyk(72.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.68, 42.87, -63.70)
CIE-LCHlch(23.68, 76.78, 303.94°)
OKLaboklab(36.07% 0.0154 -0.1842)
OKLCHoklch(36.07% 0.185 274.8)
XYZxyz(7.4413, 4.0021, 31.3843)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A229B #939B22
analogous
#22579B #2A229B #67229B
triadic
#2A229B #9B2A22 #229B2A
tetradic
#2A229B #9B2257 #939B22 #229B67
square
#2A229B #9B2257 #939B22 #229B67
split-complementary
#2A229B #9B6722 #579B22
monochromatic
#0F0C37 #1C1769 #2A229B #382DCD #655CDB

Accessibility & contrast

On white

11.66
#2A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A229B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A229B#FFFFFF#000000##FFFFFF
##2A229B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a229b;
/* rgb */ color: rgb(42, 34, 155);
/* oklch */ color: oklch(36.1% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#7660ba',
    500: '#2a229b',
    950: '#000000',
  },
}
SCSS
$custom: #2a229b;
$custom-light: #7660ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a229b",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 243.967,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3607,
    "c": 0.18488,
    "h": 274.8
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#2A229B
secondary
#B9C059
accent
#E741DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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