#2A2C8E#2A2C8E

#2A2C8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.158 H 274.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A2C8E
RGBrgb(42, 44, 142)
HSLhsl(239, 54%, 36%)
HSVhsv(239, 70%, 56%)
CMYKcmyk(70.4%, 69%, 0%, 44.3%)
CIE-LABlab(24.47, 32.49, -54.39)
CIE-LCHlch(24.47, 63.35, 300.85°)
OKLaboklab(36.23% 0.0119 -0.1571)
OKLCHoklch(36.23% 0.158 274.3)
XYZxyz(6.7364, 4.2460, 26.0505)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C8E #8E8C2A
analogous
#2A5E8E #2A2C8E #5A2A8E
triadic
#2A2C8E #8E2A2C #2C8E2A
tetradic
#2A2C8E #8E2A5E #8E8C2A #2A8E5A
square
#2A2C8E #8E2A5E #8E8C2A #2A8E5A
split-complementary
#2A2C8E #8E5A2A #5E8E2A
monochromatic
#0E0F30 #1C1D5F #2A2C8E #383BBD #6264D1

Accessibility & contrast

On white

11.36
#2A2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C8E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C8E#FFFFFF#000000##FFFFFF
##2A2C8E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2c8e;
/* rgb */ color: rgb(42, 44, 142);
/* oklch */ color: oklch(36.2% 0.158 274.3);
Tailwind
colors: {
  custom: {
    50: '#7265b0',
    500: '#2a2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c8e;
$custom-light: #7265b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c8e",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 238.8,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.15756,
    "h": 274.3
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#2A2C8E
secondary
#B6B55D
accent
#DB4ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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