#2A2C85#2A2C85

#2A2C85 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.145 H 275.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A2C85
RGBrgb(42, 44, 133)
HSLhsl(239, 52%, 34%)
HSVhsv(239, 68%, 52%)
CMYKcmyk(68.4%, 66.9%, 0%, 47.8%)
CIE-LABlab(23.63, 29.25, -50.15)
CIE-LCHlch(23.63, 58.06, 300.25°)
OKLaboklab(35.36% 0.0129 -0.1447)
OKLCHoklch(35.36% 0.145 275.1)
XYZxyz(6.0878, 3.9865, 22.6344)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C85 #85832A
analogous
#2A5A85 #2A2C85 #562A85
triadic
#2A2C85 #852A2C #2C852A
tetradic
#2A2C85 #852A5A #85832A #2A8556
square
#2A2C85 #852A5A #85832A #2A8556
split-complementary
#2A2C85 #85562A #5A852A
monochromatic
#0D0D28 #1B1D56 #2A2C85 #393BB4 #5D60CC

Accessibility & contrast

On white

11.68
#2A2C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C85
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C85#FFFFFF#000000##FFFFFF
##2A2C851.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2c85;
/* rgb */ color: rgb(42, 44, 133);
/* oklch */ color: oklch(35.4% 0.145 275.1);
Tailwind
colors: {
  custom: {
    50: '#7065a9',
    500: '#2a2c85',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c85;
$custom-light: #7065a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c85",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 238.681,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35361,
    "c": 0.14528,
    "h": 275.1
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#2A2C85
secondary
#B2B059
accent
#D84CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2C85

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

Preview Lab → · Contrast checker → · Palette generator →

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