#2A277D#2A277D

#2A277D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.140 H 277.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2A277D
RGBrgb(42, 39, 125)
HSLhsl(242, 52%, 32%)
HSVhsv(242, 69%, 49%)
CMYKcmyk(66.4%, 68.8%, 0%, 51%)
CIE-LABlab(21.67, 29.63, -48.32)
CIE-LCHlch(21.67, 56.68, 301.52°)
OKLaboklab(33.71% 0.0178 -0.1393)
OKLCHoklch(33.71% 0.14 277.3)
XYZxyz(5.3808, 3.4235, 19.7753)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A277D #7A7D27
analogous
#274F7D #2A277D #55277D
triadic
#2A277D #7D2A27 #277D2A
tetradic
#2A277D #7D274F #7A7D27 #277D55
square
#2A277D #7D274F #7A7D27 #277D55
split-complementary
#2A277D #7D5527 #4F7D27
monochromatic
#0B0A20 #1A184E #2A277D #3A36AC #5955CA

Accessibility & contrast

On white

12.46
#2A277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A277D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A277D#FFFFFF#000000##FFFFFF
##2A277D1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a277d;
/* rgb */ color: rgb(42, 39, 125);
/* oklch */ color: oklch(33.7% 0.140 277.3);
Tailwind
colors: {
  custom: {
    50: '#6f61a3',
    500: '#2a277d',
    950: '#000000',
  },
}
SCSS
$custom: #2a277d;
$custom-light: #6f61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a277d",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 242.093,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33708,
    "c": 0.14048,
    "h": 277.3
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A277D

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

Preview Lab → · Contrast checker → · Palette generator →

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