#2A2C7B#2A2C7B

#2A2C7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.131 H 275.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A2C7B
RGBrgb(42, 44, 123)
HSLhsl(239, 49%, 32%)
HSVhsv(239, 66%, 48%)
CMYKcmyk(65.9%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.73, 25.61, -45.31)
CIE-LCHlch(22.73, 52.04, 299.47°)
OKLaboklab(34.43% 0.0136 -0.1305)
OKLCHoklch(34.43% 0.131 275.9)
XYZxyz(5.4295, 3.7232, 19.1676)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C7B #7B792A
analogous
#2A547B #2A2C7B #512A7B
triadic
#2A2C7B #7B2A2C #2C7B2A
tetradic
#2A2C7B #7B2A54 #7B792A #2A7B51
square
#2A2C7B #7B2A54 #7B792A #2A7B51
split-complementary
#2A2C7B #7B512A #547B2A
monochromatic
#0B0B20 #1A1C4D #2A2C7B #3A3CA9 #595CC6

Accessibility & contrast

On white

12.04
#2A2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C7B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C7B#FFFFFF#000000##FFFFFF
##2A2C7B1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2c7b;
/* rgb */ color: rgb(42, 44, 123);
/* oklch */ color: oklch(34.4% 0.131 275.9);
Tailwind
colors: {
  custom: {
    50: '#6e65a2',
    500: '#2a2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c7b;
$custom-light: #6e65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c7b",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 238.519,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34432,
    "c": 0.13118,
    "h": 275.9
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#2A2C7B
secondary
#ACAA55
accent
#D54FD9
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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