#2A2C98#2A2C98

#2A2C98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.171 H 273.6°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2A2C98
RGBrgb(42, 44, 152)
HSLhsl(239, 57%, 38%)
HSVhsv(239, 72%, 60%)
CMYKcmyk(72.4%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.44, 36.03, -58.95)
CIE-LCHlch(25.44, 69.09, 301.43°)
OKLaboklab(37.23% 0.0106 -0.1705)
OKLCHoklch(37.23% 0.171 273.6)
XYZxyz(7.5211, 4.5599, 30.1834)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C98 #98962A
analogous
#2A6398 #2A2C98 #5F2A98
triadic
#2A2C98 #982A2C #2C982A
tetradic
#2A2C98 #982A63 #98962A #2A985F
square
#2A2C98 #982A63 #98962A #2A985F
split-complementary
#2A2C98 #985F2A #63982A
monochromatic
#101038 #1D1E68 #2A2C98 #373AC8 #6769D5

Accessibility & contrast

On white

10.98
#2A2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C98
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C98#FFFFFF#000000##FFFFFF
##2A2C981.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2c98;
/* rgb */ color: rgb(42, 44, 152);
/* oklch */ color: oklch(37.2% 0.171 273.6);
Tailwind
colors: {
  custom: {
    50: '#7466b7',
    500: '#2a2c98',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c98;
$custom-light: #7466b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c98",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 238.909,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.17079,
    "h": 273.6
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#2A2C98
secondary
#BBBA62
accent
#DD48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2A2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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