#2A2C7D#2A2C7D

#2A2C7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.134 H 275.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2C7D
RGBrgb(42, 44, 125)
HSLhsl(239, 50%, 33%)
HSVhsv(239, 66%, 49%)
CMYKcmyk(66.4%, 64.8%, 0%, 51%)
CIE-LABlab(22.91, 26.34, -46.29)
CIE-LCHlch(22.91, 53.26, 299.64°)
OKLaboklab(34.61% 0.0135 -0.1334)
OKLCHoklch(34.61% 0.134 275.8)
XYZxyz(5.5560, 3.7738, 19.8337)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C7D #7D7B2A
analogous
#2A567D #2A2C7D #512A7D
triadic
#2A2C7D #7D2A2C #2C7D2A
tetradic
#2A2C7D #7D2A56 #7D7B2A #2A7D51
square
#2A2C7D #7D2A56 #7D7B2A #2A7D51
split-complementary
#2A2C7D #7D512A #567D2A
monochromatic
#0B0C21 #1B1C4F #2A2C7D #393CAB #5A5DC8

Accessibility & contrast

On white

11.97
#2A2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C7D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C7D#FFFFFF#000000##FFFFFF
##2A2C7D1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2c7d;
/* rgb */ color: rgb(42, 44, 125);
/* oklch */ color: oklch(34.6% 0.134 275.8);
Tailwind
colors: {
  custom: {
    50: '#6e65a3',
    500: '#2a2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c7d;
$custom-light: #6e65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c7d",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 238.554,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34614,
    "c": 0.13405,
    "h": 275.8
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#2A2C7D
secondary
#ADAB56
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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