#2A279F#2A279F

#2A279F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.185 H 273.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2A279F
RGBrgb(42, 39, 159)
HSLhsl(242, 61%, 39%)
HSVhsv(242, 75%, 62%)
CMYKcmyk(73.6%, 75.5%, 0%, 37.6%)
CIE-LABlab(25.09, 41.41, -63.81)
CIE-LCHlch(25.09, 76.07, 302.98°)
OKLaboklab(37.2% 0.0122 -0.1846)
OKLCHoklch(37.2% 0.185 273.8)
XYZxyz(7.9363, 4.4457, 33.2340)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A279F #9C9F27
analogous
#27609F #2A279F #66279F
triadic
#2A279F #9F2A27 #279F2A
tetradic
#2A279F #9F2760 #9C9F27 #279F66
square
#2A279F #9F2760 #9C9F27 #279F66
split-complementary
#2A279F #9F6627 #609F27
monochromatic
#100F3D #1D1B6E #2A279F #3936CE #6A67DA

Accessibility & contrast

On white

11.12
#2A279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A279F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A279F#FFFFFF#000000##FFFFFF
##2A279F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a279f;
/* rgb */ color: rgb(42, 39, 159);
/* oklch */ color: oklch(37.2% 0.185 273.8);
Tailwind
colors: {
  custom: {
    50: '#7763bd',
    500: '#2a279f',
    950: '#000000',
  },
}
SCSS
$custom: #2a279f;
$custom-light: #7763bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a279f",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 241.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37198,
    "c": 0.18499,
    "h": 273.8
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A279F

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

Preview Lab → · Contrast checker → · Palette generator →

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