#2A3480#2A3480

#2A3480 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.128 H 272.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3480
RGBrgb(42, 52, 128)
HSLhsl(233, 51%, 33%)
HSVhsv(233, 67%, 50%)
CMYKcmyk(67.2%, 59.4%, 0%, 49.8%)
CIE-LABlab(25.28, 22.02, -44.32)
CIE-LCHlch(25.28, 49.49, 296.42°)
OKLaboklab(36.45% 0.006 -0.1275)
OKLCHoklch(36.45% 0.128 272.7)
XYZxyz(6.0778, 4.5062, 20.9674)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3480 #80762A
analogous
#2A5F80 #2A3480 #4B2A80
triadic
#2A3480 #802A34 #34802A
tetradic
#2A3480 #802A5F #80762A #2A804B
square
#2A3480 #802A5F #80762A #2A804B
split-complementary
#2A3480 #804B2A #5F802A
monochromatic
#0C0F24 #1B2152 #2A3480 #3947AE #5B68C9

Accessibility & contrast

On white

11.04
#2A3480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A3480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3480
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3480#FFFFFF#000000##FFFFFF
##2A34801.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a3480;
/* rgb */ color: rgb(42, 52, 128);
/* oklch */ color: oklch(36.4% 0.128 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e6ba5',
    500: '#2a3480',
    950: '#000000',
  },
}
SCSS
$custom: #2a3480;
$custom-light: #6e6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3480",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 128
  },
  "hsl": {
    "h": 233.023,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36446,
    "c": 0.12766,
    "h": 272.7
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#2A3480
secondary
#AFA557
accent
#CA4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3480

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

Preview Lab → · Contrast checker → · Palette generator →

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