#2A2277#2A2277

#2A2277 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.138 H 279.5°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2A2277
RGBrgb(42, 34, 119)
HSLhsl(246, 56%, 30%)
HSVhsv(246, 71%, 47%)
CMYKcmyk(64.7%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.91, 30.72, -47.37)
CIE-LCHlch(19.91, 56.46, 302.97°)
OKLaboklab(32.27% 0.0228 -0.1366)
OKLCHoklch(32.27% 0.138 279.5)
XYZxyz(4.8556, 2.9678, 17.7662)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2277 #6F7722
analogous
#224577 #2A2277 #542277
triadic
#2A2277 #772A22 #22772A
tetradic
#2A2277 #772245 #6F7722 #227754
square
#2A2277 #772245 #6F7722 #227754
split-complementary
#2A2277 #775422 #457722
monochromatic
#080718 #191447 #2A2277 #3B30A7 #5549CB

Accessibility & contrast

On white

13.18
#2A2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2277
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2277#FFFFFF#000000##FFFFFF
##2A22771.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2277;
/* rgb */ color: rgb(42, 34, 119);
/* oklch */ color: oklch(32.3% 0.138 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e5e9f',
    500: '#2a2277',
    950: '#000000',
  },
}
SCSS
$custom: #2a2277;
$custom-light: #6e5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2277",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 245.647,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32268,
    "c": 0.13846,
    "h": 279.5
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#2A2277
secondary
#A1AA4B
accent
#DF49D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A2277

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

Preview Lab → · Contrast checker → · Palette generator →

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