#2A339B#2A339B

#2A339B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.167 H 272.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2A339B
RGBrgb(42, 51, 155)
HSLhsl(235, 57%, 39%)
HSVhsv(235, 73%, 61%)
CMYKcmyk(72.9%, 67.1%, 0%, 39.2%)
CIE-LABlab(27.37, 32.67, -57.63)
CIE-LCHlch(27.37, 66.25, 299.55°)
OKLaboklab(38.71% 0.0058 -0.1666)
OKLCHoklch(38.71% 0.167 272)
XYZxyz(8.0531, 5.2256, 31.5882)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A339B #9B922A
analogous
#2A6B9B #2A339B #592A9B
triadic
#2A339B #9B2A33 #339B2A
tetradic
#2A339B #9B2A6B #9B922A #2A9B59
square
#2A339B #9B2A6B #9B922A #2A9B59
split-complementary
#2A339B #9B592A #6B9B2A
monochromatic
#10133B #1D236B #2A339B #3944C9 #6972D6

Accessibility & contrast

On white

10.27
#2A339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A339B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A339B#FFFFFF#000000##FFFFFF
##2A339B1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a339b;
/* rgb */ color: rgb(42, 51, 155);
/* oklch */ color: oklch(38.7% 0.167 272.0);
Tailwind
colors: {
  custom: {
    50: '#756bb9',
    500: '#2a339b',
    950: '#000000',
  },
}
SCSS
$custom: #2a339b;
$custom-light: #756bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a339b",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 235.221,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38713,
    "c": 0.16666,
    "h": 272
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#2A339B
secondary
#BDB664
accent
#D447E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A339B

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

Preview Lab → · Contrast checker → · Palette generator →

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