#2A279D#2A279D

#2A279D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.182 H 273.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2A279D
RGBrgb(42, 39, 157)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 62%)
CMYKcmyk(73.2%, 75.2%, 0%, 38.4%)
CIE-LABlab(24.88, 40.74, -62.94)
CIE-LCHlch(24.88, 74.98, 302.91°)
OKLaboklab(36.98% 0.0126 -0.1821)
OKLCHoklch(36.98% 0.182 273.9)
XYZxyz(7.7641, 4.3768, 32.3274)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A279D #9A9D27
analogous
#275F9D #2A279D #65279D
triadic
#2A279D #9D2A27 #279D2A
tetradic
#2A279D #9D275F #9A9D27 #279D65
square
#2A279D #9D275F #9A9D27 #279D65
split-complementary
#2A279D #9D6527 #5F9D27
monochromatic
#100F3B #1D1B6C #2A279D #3835CD #6866D9

Accessibility & contrast

On white

11.20
#2A279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A279D
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A279D#FFFFFF#000000##FFFFFF
##2A279D1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a279d;
/* rgb */ color: rgb(42, 39, 157);
/* oklch */ color: oklch(37.0% 0.182 273.9);
Tailwind
colors: {
  custom: {
    50: '#7663bb',
    500: '#2a279d',
    950: '#000000',
  },
}
SCSS
$custom: #2a279d;
$custom-light: #7663bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a279d",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 241.525,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.18249,
    "h": 273.9
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#2A279D
secondary
#BCBF61
accent
#E344DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A279D

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

Preview Lab → · Contrast checker → · Palette generator →

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