#2A277A#2A277A

#2A277A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.136 H 277.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2A277A
RGBrgb(42, 39, 122)
HSLhsl(242, 52%, 32%)
HSVhsv(242, 68%, 48%)
CMYKcmyk(65.6%, 68%, 0%, 52.2%)
CIE-LABlab(21.39, 28.57, -46.87)
CIE-LCHlch(21.39, 54.89, 301.36°)
OKLaboklab(33.42% 0.0182 -0.1351)
OKLCHoklch(33.42% 0.136 277.7)
XYZxyz(5.1921, 3.3480, 18.7812)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A277A #777A27
analogous
#274E7A #2A277A #54277A
triadic
#2A277A #7A2A27 #277A2A
tetradic
#2A277A #7A274E #777A27 #277A54
square
#2A277A #7A274E #777A27 #277A54
split-complementary
#2A277A #7A5427 #4E7A27
monochromatic
#0A091D #1A184C #2A277A #3A36A8 #5853C8

Accessibility & contrast

On white

12.58
#2A277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A277A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A277A#FFFFFF#000000##FFFFFF
##2A277A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a277a;
/* rgb */ color: rgb(42, 39, 122);
/* oklch */ color: oklch(33.4% 0.136 277.7);
Tailwind
colors: {
  custom: {
    50: '#6e61a1',
    500: '#2a277a',
    950: '#000000',
  },
}
SCSS
$custom: #2a277a;
$custom-light: #6e61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a277a",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 242.169,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33419,
    "c": 0.13631,
    "h": 277.7
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#2A277A
secondary
#A9AC51
accent
#DB4DD6
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A277A

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

Preview Lab → · Contrast checker → · Palette generator →

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