#2A2977#2A2977

#2A2977 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.129 H 277.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2A2977
RGBrgb(42, 41, 119)
HSLhsl(241, 49%, 31%)
HSVhsv(241, 66%, 47%)
CMYKcmyk(64.7%, 65.5%, 0%, 53.3%)
CIE-LABlab(21.61, 26.16, -44.59)
CIE-LCHlch(21.61, 51.70, 300.41°)
OKLaboklab(33.5% 0.0166 -0.1284)
OKLCHoklch(33.5% 0.129 277.4)
XYZxyz(5.0765, 3.4096, 17.8398)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2977 #767729
analogous
#294F77 #2A2977 #512977
triadic
#2A2977 #772A29 #29772A
tetradic
#2A2977 #77294F #767729 #297751
square
#2A2977 #77294F #767729 #297751
split-complementary
#2A2977 #775129 #4F7729
monochromatic
#0A0A1C #1A1949 #2A2977 #3A39A5 #5756C5

Accessibility & contrast

On white

12.49
#2A2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A2977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2977
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2977#FFFFFF#000000##FFFFFF
##2A29771.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2977;
/* rgb */ color: rgb(42, 41, 119);
/* oklch */ color: oklch(33.5% 0.129 277.4);
Tailwind
colors: {
  custom: {
    50: '#6d639f',
    500: '#2a2977',
    950: '#000000',
  },
}
SCSS
$custom: #2a2977;
$custom-light: #6d639f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2977",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 240.769,
    "s": 48.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33501,
    "c": 0.12946,
    "h": 277.4
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#2A2977
secondary
#A8A953
accent
#D84FD7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2977

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

Preview Lab → · Contrast checker → · Palette generator →

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