#2A279E#2A279E

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

Color values

HEX#2A279E
RGBrgb(42, 39, 158)
HSLhsl(242, 60%, 39%)
HSVhsv(242, 75%, 62%)
CMYKcmyk(73.4%, 75.3%, 0%, 38%)
CIE-LABlab(24.99, 41.08, -63.38)
CIE-LCHlch(24.99, 75.52, 302.95°)
OKLaboklab(37.09% 0.0124 -0.1833)
OKLCHoklch(37.09% 0.184 273.9)
XYZxyz(7.8499, 4.4111, 32.7789)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A279E #9B9E27
analogous
#275F9E #2A279E #65279E
triadic
#2A279E #9E2A27 #279E2A
tetradic
#2A279E #9E275F #9B9E27 #279E65
square
#2A279E #9E275F #9B9E27 #279E65
split-complementary
#2A279E #9E6527 #5F9E27
monochromatic
#100F3C #1D1B6D #2A279E #3935CD #6966D9

Accessibility & contrast

On white

11.16
#2A279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A279E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A279E#FFFFFF#000000##FFFFFF
##2A279E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a279e;
/* rgb */ color: rgb(42, 39, 158);
/* oklch */ color: oklch(37.1% 0.184 273.9);
Tailwind
colors: {
  custom: {
    50: '#7663bc',
    500: '#2a279e',
    950: '#000000',
  },
}
SCSS
$custom: #2a279e;
$custom-light: #7663bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a279e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 241.513,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3709,
    "c": 0.18375,
    "h": 273.9
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#2A279E
secondary
#BDBF62
accent
#E444E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A279E

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

Preview Lab → · Contrast checker → · Palette generator →

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