#2A276C#2A276C

#2A276C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.1% C 0.116 H 279.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2A276C
RGBrgb(42, 39, 108)
HSLhsl(243, 47%, 29%)
HSVhsv(243, 64%, 42%)
CMYKcmyk(61.1%, 63.9%, 0%, 57.6%)
CIE-LABlab(20.15, 23.54, -39.90)
CIE-LCHlch(20.15, 46.33, 300.54°)
OKLaboklab(32.13% 0.0193 -0.1146)
OKLCHoklch(32.13% 0.116 279.5)
XYZxyz(4.3863, 3.0257, 14.5373)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A276C #696C27
analogous
#27476C #2A276C #4D276C
triadic
#2A276C #6C2A27 #276C2A
tetradic
#2A276C #6C2747 #696C27 #276C4D
square
#2A276C #6C2747 #696C27 #276C4D
split-complementary
#2A276C #6C4D27 #476C27
monochromatic
#090816 #19173F #2A276C #3B3799 #534EBF

Accessibility & contrast

On white

13.08
#2A276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A276C
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A276C#FFFFFF#000000##FFFFFF
##2A276C1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#023845
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a276c;
/* rgb */ color: rgb(42, 39, 108);
/* oklch */ color: oklch(32.1% 0.116 279.5);
Tailwind
colors: {
  custom: {
    50: '#6b6197',
    500: '#2a276c',
    950: '#000000',
  },
}
SCSS
$custom: #2a276c;
$custom-light: #6b6197;
$custom-dark: #000000;
JSON
{
  "hex": "#2a276c",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 242.609,
    "s": 46.939,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.11624,
    "h": 279.5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#2A276C
secondary
#9B9F50
accent
#D751D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A276C

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

Preview Lab → · Contrast checker → · Palette generator →

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