#2A2C77#2A2C77

#2A2C77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.125 H 276.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2C77
RGBrgb(42, 44, 119)
HSLhsl(238, 48%, 32%)
HSVhsv(238, 65%, 47%)
CMYKcmyk(64.7%, 63%, 0%, 53.3%)
CIE-LABlab(22.39, 24.14, -43.32)
CIE-LCHlch(22.39, 49.59, 299.13°)
OKLaboklab(34.07% 0.0138 -0.1246)
OKLCHoklch(34.07% 0.125 276.3)
XYZxyz(5.1842, 3.6251, 17.8757)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C77 #77752A
analogous
#2A5377 #2A2C77 #4F2A77
triadic
#2A2C77 #772A2C #2C772A
tetradic
#2A2C77 #772A53 #77752A #2A774F
square
#2A2C77 #772A53 #77752A #2A774F
split-complementary
#2A2C77 #774F2A #53772A
monochromatic
#0A0B1D #1A1B4A #2A2C77 #3A3DA4 #585AC4

Accessibility & contrast

On white

12.17
#2A2C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C77
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C77#FFFFFF#000000##FFFFFF
##2A2C771.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2c77;
/* rgb */ color: rgb(42, 44, 119);
/* oklch */ color: oklch(34.1% 0.125 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d659f',
    500: '#2a2c77',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c77;
$custom-light: #6d659f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c77",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 238.442,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34072,
    "c": 0.12541,
    "h": 276.3
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#2A2C77
secondary
#A9A754
accent
#D450D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2A2C77

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

Preview Lab → · Contrast checker → · Palette generator →

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