#2A276B#2A276B

#2A276B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.115 H 279.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2A276B
RGBrgb(42, 39, 107)
HSLhsl(243, 47%, 29%)
HSVhsv(243, 64%, 42%)
CMYKcmyk(60.7%, 63.6%, 0%, 58%)
CIE-LABlab(20.06, 23.18, -39.39)
CIE-LCHlch(20.06, 45.70, 300.48°)
OKLaboklab(32.04% 0.0193 -0.1131)
OKLCHoklch(32.04% 0.115 279.7)
XYZxyz(4.3334, 3.0045, 14.2586)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A276B #686B27
analogous
#27466B #2A276B #4C276B
triadic
#2A276B #6B2A27 #276B2A
tetradic
#2A276B #6B2746 #686B27 #276B4C
square
#2A276B #6B2746 #686B27 #276B4C
split-complementary
#2A276B #6B4C27 #466B27
monochromatic
#090816 #18173E #2A276B #3C3798 #534EBE

Accessibility & contrast

On white

13.12
#2A276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A276B
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A276B#FFFFFF#000000##FFFFFF
##2A276B1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#043745
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a276b;
/* rgb */ color: rgb(42, 39, 107);
/* oklch */ color: oklch(32.0% 0.115 279.7);
Tailwind
colors: {
  custom: {
    50: '#6b6196',
    500: '#2a276b',
    950: '#000000',
  },
}
SCSS
$custom: #2a276b;
$custom-light: #6b6196;
$custom-dark: #000000;
JSON
{
  "hex": "#2a276b",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 242.647,
    "s": 46.575,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.11477,
    "h": 279.7
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#2A276B
secondary
#9A9E50
accent
#D652D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A276B

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

Preview Lab → · Contrast checker → · Palette generator →

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