#2A278D#2A278D

#2A278D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.162 H 275.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2A278D
RGBrgb(42, 39, 141)
HSLhsl(242, 57%, 35%)
HSVhsv(242, 72%, 55%)
CMYKcmyk(70.2%, 72.3%, 0%, 44.7%)
CIE-LABlab(23.22, 35.26, -55.81)
CIE-LCHlch(23.22, 66.02, 302.29°)
OKLaboklab(35.3% 0.0155 -0.1613)
OKLCHoklch(35.3% 0.162 275.5)
XYZxyz(6.4865, 3.8658, 25.5985)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A278D #8A8D27
analogous
#27578D #2A278D #5D278D
triadic
#2A278D #8D2A27 #278D2A
tetradic
#2A278D #8D2757 #8A8D27 #278D5D
square
#2A278D #8D2757 #8A8D27 #278D5D
split-complementary
#2A278D #8D5D27 #578D27
monochromatic
#0D0C2D #1C1A5D #2A278D #3834BD #605CD2

Accessibility & contrast

On white

11.84
#2A278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A278D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A278D#FFFFFF#000000##FFFFFF
##2A278D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a278d;
/* rgb */ color: rgb(42, 39, 141);
/* oklch */ color: oklch(35.3% 0.162 275.5);
Tailwind
colors: {
  custom: {
    50: '#7262af',
    500: '#2a278d',
    950: '#000000',
  },
}
SCSS
$custom: #2a278d;
$custom-light: #7262af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a278d",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 241.765,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35304,
    "c": 0.16201,
    "h": 275.5
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#2A278D
secondary
#B4B759
accent
#E048DB
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A278D

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

Preview Lab → · Contrast checker → · Palette generator →

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