#2A3580#2A3580

#2A3580 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.126 H 272.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2A3580
RGBrgb(42, 53, 128)
HSLhsl(232, 51%, 33%)
HSVhsv(232, 67%, 50%)
CMYKcmyk(67.2%, 58.6%, 0%, 49.8%)
CIE-LABlab(25.55, 21.33, -43.88)
CIE-LCHlch(25.55, 48.79, 295.93°)
OKLaboklab(36.65% 0.0051 -0.1262)
OKLCHoklch(36.65% 0.126 272.3)
XYZxyz(6.1229, 4.5964, 20.9824)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3580 #80752A
analogous
#2A6080 #2A3580 #4A2A80
triadic
#2A3580 #802A35 #35802A
tetradic
#2A3580 #802A60 #80752A #2A804A
square
#2A3580 #802A60 #80752A #2A804A
split-complementary
#2A3580 #804A2A #60802A
monochromatic
#0C0F24 #1B2252 #2A3580 #3948AE #5B69C9

Accessibility & contrast

On white

10.94
#2A3580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A3580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3580
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3580#FFFFFF#000000##FFFFFF
##2A35801.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3580;
/* rgb */ color: rgb(42, 53, 128);
/* oklch */ color: oklch(36.6% 0.126 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e6ca5',
    500: '#2a3580',
    950: '#000000',
  },
}
SCSS
$custom: #2a3580;
$custom-light: #6e6ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3580",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 128
  },
  "hsl": {
    "h": 232.326,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3665,
    "c": 0.1263,
    "h": 272.3
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#2A3580
secondary
#AFA457
accent
#C84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3580

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

Preview Lab → · Contrast checker → · Palette generator →

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