#2A277E#2A277E

#2A277E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.142 H 277.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2A277E
RGBrgb(42, 39, 126)
HSLhsl(242, 53%, 32%)
HSVhsv(242, 69%, 49%)
CMYKcmyk(66.7%, 69%, 0%, 50.6%)
CIE-LABlab(21.76, 29.99, -48.80)
CIE-LCHlch(21.76, 57.28, 301.57°)
OKLaboklab(33.81% 0.0177 -0.1408)
OKLCHoklch(33.81% 0.142 277.2)
XYZxyz(5.4450, 3.4492, 20.1134)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A277E #7B7E27
analogous
#27507E #2A277E #56277E
triadic
#2A277E #7E2A27 #277E2A
tetradic
#2A277E #7E2750 #7B7E27 #277E56
square
#2A277E #7E2750 #7B7E27 #277E56
split-complementary
#2A277E #7E5627 #507E27
monochromatic
#0B0A21 #1A194F #2A277E #3A35AD #5955CA

Accessibility & contrast

On white

12.43
#2A277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A277E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A277E#FFFFFF#000000##FFFFFF
##2A277E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a277e;
/* rgb */ color: rgb(42, 39, 126);
/* oklch */ color: oklch(33.8% 0.142 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f62a4',
    500: '#2a277e',
    950: '#000000',
  },
}
SCSS
$custom: #2a277e;
$custom-light: #6f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a277e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 242.069,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.14187,
    "h": 277.2
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A277E

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

Preview Lab → · Contrast checker → · Palette generator →

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