#2A2C8A#2A2C8A

#2A2C8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.152 H 274.7°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#2A2C8A
RGBrgb(42, 44, 138)
HSLhsl(239, 53%, 35%)
HSVhsv(239, 70%, 54%)
CMYKcmyk(69.6%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.09, 31.05, -52.52)
CIE-LCHlch(24.09, 61.01, 300.59°)
OKLaboklab(35.84% 0.0124 -0.1516)
OKLCHoklch(35.84% 0.152 274.7)
XYZxyz(6.4415, 4.1280, 24.4971)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C8A #8A882A
analogous
#2A5C8A #2A2C8A #582A8A
triadic
#2A2C8A #8A2A2C #2C8A2A
tetradic
#2A2C8A #8A2A5C #8A882A #2A8A58
square
#2A2C8A #8A2A5C #8A882A #2A8A58
split-complementary
#2A2C8A #8A582A #5C8A2A
monochromatic
#0D0E2C #1C1D5B #2A2C8A #383BB9 #6062CF

Accessibility & contrast

On white

11.50
#2A2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C8A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C8A#FFFFFF#000000##FFFFFF
##2A2C8A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2c8a;
/* rgb */ color: rgb(42, 44, 138);
/* oklch */ color: oklch(35.8% 0.152 274.7);
Tailwind
colors: {
  custom: {
    50: '#7165ad',
    500: '#2a2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c8a;
$custom-light: #7165ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c8a",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 238.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35841,
    "c": 0.15214,
    "h": 274.7
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#2A2C8A
secondary
#B4B35B
accent
#DA4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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