#2A278E#2A278E

#2A278E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.163 H 275.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A278E
RGBrgb(42, 39, 142)
HSLhsl(242, 57%, 35%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(70.4%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.32, 35.61, -56.27)
CIE-LCHlch(23.32, 66.59, 302.33°)
OKLaboklab(35.41% 0.0153 -0.1626)
OKLCHoklch(35.41% 0.163 275.4)
XYZxyz(6.5612, 3.8957, 25.9921)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A278E #8B8E27
analogous
#27578E #2A278E #5E278E
triadic
#2A278E #8E2A27 #278E2A
tetradic
#2A278E #8E2757 #8B8E27 #278E5E
square
#2A278E #8E2757 #8B8E27 #278E5E
split-complementary
#2A278E #8E5E27 #578E27
monochromatic
#0E0D2E #1C1A5E #2A278E #3834BE #605DD2

Accessibility & contrast

On white

11.80
#2A278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A278E
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A278E#FFFFFF#000000##FFFFFF
##2A278E1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a278e;
/* rgb */ color: rgb(42, 39, 142);
/* oklch */ color: oklch(35.4% 0.163 275.4);
Tailwind
colors: {
  custom: {
    50: '#7362b0',
    500: '#2a278e',
    950: '#000000',
  },
}
SCSS
$custom: #2a278e;
$custom-light: #7362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a278e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 241.748,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35407,
    "c": 0.16332,
    "h": 275.4
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#2A278E
secondary
#B5B859
accent
#E048DC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A278E

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

Preview Lab → · Contrast checker → · Palette generator →

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