#2A277C#2A277C

#2A277C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.139 H 277.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2A277C
RGBrgb(42, 39, 124)
HSLhsl(242, 52%, 32%)
HSVhsv(242, 69%, 49%)
CMYKcmyk(66.1%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.57, 29.28, -47.84)
CIE-LCHlch(21.57, 56.09, 301.47°)
OKLaboklab(33.61% 0.0179 -0.1379)
OKLCHoklch(33.61% 0.139 277.4)
XYZxyz(5.3173, 3.3981, 19.4406)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A277C #797C27
analogous
#274F7C #2A277C #55277C
triadic
#2A277C #7C2A27 #277C2A
tetradic
#2A277C #7C274F #797C27 #277C55
square
#2A277C #7C274F #797C27 #277C55
split-complementary
#2A277C #7C5527 #4F7C27
monochromatic
#0A0A1F #1A184D #2A277C #3A36AB #5854C9

Accessibility & contrast

On white

12.50
#2A277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A277C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A277C#FFFFFF#000000##FFFFFF
##2A277C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a277c;
/* rgb */ color: rgb(42, 39, 124);
/* oklch */ color: oklch(33.6% 0.139 277.4);
Tailwind
colors: {
  custom: {
    50: '#6e61a3',
    500: '#2a277c',
    950: '#000000',
  },
}
SCSS
$custom: #2a277c;
$custom-light: #6e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a277c",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 242.118,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33611,
    "c": 0.1391,
    "h": 277.4
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#2A277C
secondary
#ABAE51
accent
#DC4CD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A277C

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

Preview Lab → · Contrast checker → · Palette generator →

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