#2A277F#2A277F

#2A277F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.143 H 277.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2A277F
RGBrgb(42, 39, 127)
HSLhsl(242, 53%, 33%)
HSVhsv(242, 69%, 50%)
CMYKcmyk(66.9%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.85, 30.35, -49.28)
CIE-LCHlch(21.85, 57.87, 301.62°)
OKLaboklab(33.9% 0.0176 -0.1422)
OKLCHoklch(33.9% 0.143 277)
XYZxyz(5.5099, 3.4751, 20.4550)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A277F #7C7F27
analogous
#27507F #2A277F #56277F
triadic
#2A277F #7F2A27 #277F2A
tetradic
#2A277F #7F2750 #7C7F27 #277F56
square
#2A277F #7F2750 #7C7F27 #277F56
split-complementary
#2A277F #7F5627 #507F27
monochromatic
#0B0A21 #1B1950 #2A277F #3935AE #5955CB

Accessibility & contrast

On white

12.39
#2A277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A277F
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A277F#FFFFFF#000000##FFFFFF
##2A277F1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a277f;
/* rgb */ color: rgb(42, 39, 127);
/* oklch */ color: oklch(33.9% 0.143 277.0);
Tailwind
colors: {
  custom: {
    50: '#6f62a5',
    500: '#2a277f',
    950: '#000000',
  },
}
SCSS
$custom: #2a277f;
$custom-light: #6f62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a277f",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 242.045,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.14324,
    "h": 277
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#2A277F
secondary
#ADB052
accent
#DC4BD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A277F

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

Preview Lab → · Contrast checker → · Palette generator →

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