#2A2C7E#2A2C7E

#2A2C7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.135 H 275.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2A2C7E
RGBrgb(42, 44, 126)
HSLhsl(239, 50%, 33%)
HSVhsv(239, 67%, 49%)
CMYKcmyk(66.7%, 65.1%, 0%, 50.6%)
CIE-LABlab(23.00, 26.70, -46.78)
CIE-LCHlch(23.00, 53.86, 299.72°)
OKLaboklab(34.71% 0.0134 -0.1348)
OKLCHoklch(34.71% 0.135 275.7)
XYZxyz(5.6202, 3.7995, 20.1718)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C7E #7E7C2A
analogous
#2A567E #2A2C7E #522A7E
triadic
#2A2C7E #7E2A2C #2C7E2A
tetradic
#2A2C7E #7E2A56 #7E7C2A #2A7E52
square
#2A2C7E #7E2A56 #7E7C2A #2A7E52
split-complementary
#2A2C7E #7E522A #567E2A
monochromatic
#0B0C22 #1B1C50 #2A2C7E #393CAC #5A5DC8

Accessibility & contrast

On white

11.93
#2A2C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C7E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C7E#FFFFFF#000000##FFFFFF
##2A2C7E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2c7e;
/* rgb */ color: rgb(42, 44, 126);
/* oklch */ color: oklch(34.7% 0.135 275.7);
Tailwind
colors: {
  custom: {
    50: '#6e65a4',
    500: '#2a2c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c7e;
$custom-light: #6e65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c7e",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 238.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.13547,
    "h": 275.7
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#2A2C7E
secondary
#AEAC56
accent
#D64EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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