#2A2676#2A2676

#2A2676 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.132 H 278.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2A2676
RGBrgb(42, 38, 118)
HSLhsl(243, 51%, 31%)
HSVhsv(243, 68%, 46%)
CMYKcmyk(64.4%, 67.8%, 0%, 53.7%)
CIE-LABlab(20.77, 27.79, -45.32)
CIE-LCHlch(20.77, 53.16, 301.52°)
OKLaboklab(32.86% 0.0195 -0.1306)
OKLCHoklch(32.86% 0.132 278.5)
XYZxyz(4.9169, 3.1861, 17.4919)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2676 #727626
analogous
#264A76 #2A2676 #522676
triadic
#2A2676 #762A26 #26762A
tetradic
#2A2676 #76264A #727626 #267652
square
#2A2676 #76264A #727626 #267652
split-complementary
#2A2676 #765226 #4A7626
monochromatic
#090819 #1A1748 #2A2676 #3A35A4 #5650C7

Accessibility & contrast

On white

12.83
#2A2676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2676
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2676#FFFFFF#000000##FFFFFF
##2A26761.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2676;
/* rgb */ color: rgb(42, 38, 118);
/* oklch */ color: oklch(32.9% 0.132 278.5);
Tailwind
colors: {
  custom: {
    50: '#6d619e',
    500: '#2a2676',
    950: '#000000',
  },
}
SCSS
$custom: #2a2676;
$custom-light: #6d619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2676",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 118
  },
  "hsl": {
    "h": 243,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3286,
    "c": 0.132,
    "h": 278.5
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#2A2676
secondary
#A4A84F
accent
#DB4DD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2676

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

Preview Lab → · Contrast checker → · Palette generator →

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