#2A276A#2A276A

#2A276A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.9% C 0.113 H 279.8°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2A276A
RGBrgb(42, 39, 106)
HSLhsl(243, 46%, 28%)
HSVhsv(243, 63%, 42%)
CMYKcmyk(60.4%, 63.2%, 0%, 58.4%)
CIE-LABlab(19.98, 22.82, -38.87)
CIE-LCHlch(19.98, 45.08, 300.42°)
OKLaboklab(31.95% 0.0194 -0.1116)
OKLCHoklch(31.95% 0.113 279.8)
XYZxyz(4.2811, 2.9836, 13.9832)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A276A #676A27
analogous
#27456A #2A276A #4B276A
triadic
#2A276A #6A2A27 #276A2A
tetradic
#2A276A #6A2745 #676A27 #276A4B
square
#2A276A #6A2745 #676A27 #276A4B
split-complementary
#2A276A #6A4B27 #456A27
monochromatic
#090816 #18173D #2A276A #3C3797 #534EBE

Accessibility & contrast

On white

13.15
#2A276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A276A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A276A#FFFFFF#000000##FFFFFF
##2A276A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#063744
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a276a;
/* rgb */ color: rgb(42, 39, 106);
/* oklch */ color: oklch(31.9% 0.113 279.8);
Tailwind
colors: {
  custom: {
    50: '#6b6195',
    500: '#2a276a',
    950: '#000000',
  },
}
SCSS
$custom: #2a276a;
$custom-light: #6b6195;
$custom-dark: #000000;
JSON
{
  "hex": "#2a276a",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 242.687,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.11329,
    "h": 279.8
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#2A276A
secondary
#999D50
accent
#D652D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A276A

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

Preview Lab → · Contrast checker → · Palette generator →

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