#2A279B#2A279B

#2A279B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.180 H 274.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2A279B
RGBrgb(42, 39, 155)
HSLhsl(242, 60%, 38%)
HSVhsv(242, 75%, 61%)
CMYKcmyk(72.9%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.67, 40.07, -62.07)
CIE-LCHlch(24.67, 73.88, 302.84°)
OKLaboklab(36.77% 0.013 -0.1795)
OKLCHoklch(36.77% 0.18 274.1)
XYZxyz(7.5948, 4.3091, 31.4355)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A279B #989B27
analogous
#275E9B #2A279B #64279B
triadic
#2A279B #9B2A27 #279B2A
tetradic
#2A279B #9B275E #989B27 #279B64
square
#2A279B #9B275E #989B27 #279B64
split-complementary
#2A279B #9B6427 #5E9B27
monochromatic
#100E39 #1D1B6A #2A279B #3733CC #6764D8

Accessibility & contrast

On white

11.28
#2A279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A279B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A279B#FFFFFF#000000##FFFFFF
##2A279B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a279b;
/* rgb */ color: rgb(42, 39, 155);
/* oklch */ color: oklch(36.8% 0.180 274.1);
Tailwind
colors: {
  custom: {
    50: '#7663ba',
    500: '#2a279b',
    950: '#000000',
  },
}
SCSS
$custom: #2a279b;
$custom-light: #7663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a279b",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 241.552,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36769,
    "c": 0.17999,
    "h": 274.1
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2A279B
secondary
#BBBE60
accent
#E345DF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A279B

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

Preview Lab → · Contrast checker → · Palette generator →

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