#2A2C80#2A2C80

#2A2C80 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.138 H 275.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2C80
RGBrgb(42, 44, 128)
HSLhsl(239, 51%, 33%)
HSVhsv(239, 67%, 50%)
CMYKcmyk(67.2%, 65.6%, 0%, 49.8%)
CIE-LABlab(23.17, 27.43, -47.75)
CIE-LCHlch(23.17, 55.07, 299.88°)
OKLaboklab(34.89% 0.0133 -0.1377)
OKLCHoklch(34.89% 0.138 275.5)
XYZxyz(5.7505, 3.8516, 20.8583)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C80 #807E2A
analogous
#2A5780 #2A2C80 #532A80
triadic
#2A2C80 #802A2C #2C802A
tetradic
#2A2C80 #802A57 #807E2A #2A8053
square
#2A2C80 #802A57 #807E2A #2A8053
split-complementary
#2A2C80 #80532A #57802A
monochromatic
#0C0C24 #1B1C52 #2A2C80 #393CAE #5B5EC9

Accessibility & contrast

On white

11.86
#2A2C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C80
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C80#FFFFFF#000000##FFFFFF
##2A2C801.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2c80;
/* rgb */ color: rgb(42, 44, 128);
/* oklch */ color: oklch(34.9% 0.138 275.5);
Tailwind
colors: {
  custom: {
    50: '#6f65a6',
    500: '#2a2c80',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c80;
$custom-light: #6f65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c80",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 238.605,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.1383,
    "h": 275.5
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#2A2C80
secondary
#AFAD57
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2C80

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

Preview Lab → · Contrast checker → · Palette generator →

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