#2A278F#2A278F

#2A278F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.165 H 275.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2A278F
RGBrgb(42, 39, 143)
HSLhsl(242, 57%, 36%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(70.6%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.42, 35.96, -56.72)
CIE-LCHlch(23.42, 67.16, 302.37°)
OKLaboklab(35.51% 0.0151 -0.1639)
OKLCHoklch(35.51% 0.165 275.3)
XYZxyz(6.6367, 3.9258, 26.3893)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A278F #8C8F27
analogous
#27588F #2A278F #5E278F
triadic
#2A278F #8F2A27 #278F2A
tetradic
#2A278F #8F2758 #8C8F27 #278F5E
square
#2A278F #8F2758 #8C8F27 #278F5E
split-complementary
#2A278F #8F5E27 #588F27
monochromatic
#0E0D2F #1C1A5F #2A278F #3834BF #615DD3

Accessibility & contrast

On white

11.76
#2A278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A278F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A278F#FFFFFF#000000##FFFFFF
##2A278F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a278f;
/* rgb */ color: rgb(42, 39, 143);
/* oklch */ color: oklch(35.5% 0.165 275.3);
Tailwind
colors: {
  custom: {
    50: '#7362b1',
    500: '#2a278f',
    950: '#000000',
  },
}
SCSS
$custom: #2a278f;
$custom-light: #7362b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a278f",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 241.731,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3551,
    "c": 0.16463,
    "h": 275.3
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#2A278F
secondary
#B5B85A
accent
#E047DC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A278F

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

Preview Lab → · Contrast checker → · Palette generator →

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