#2A3282#2A3282

#2A3282 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.133 H 273.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2A3282
RGBrgb(42, 50, 130)
HSLhsl(235, 51%, 34%)
HSVhsv(235, 68%, 51%)
CMYKcmyk(67.7%, 61.5%, 0%, 49%)
CIE-LABlab(24.90, 24.13, -46.19)
CIE-LCHlch(24.90, 52.11, 297.58°)
OKLaboklab(36.22% 0.0079 -0.133)
OKLCHoklch(36.22% 0.133 273.4)
XYZxyz(6.1234, 4.3846, 21.6384)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3282 #827A2A
analogous
#2A5E82 #2A3282 #4E2A82
triadic
#2A3282 #822A32 #32822A
tetradic
#2A3282 #822A5E #827A2A #2A824E
square
#2A3282 #822A5E #827A2A #2A824E
split-complementary
#2A3282 #824E2A #5E822A
monochromatic
#0C0E25 #1B2054 #2A3282 #3944B0 #5C66CA

Accessibility & contrast

On white

11.19
#2A3282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A3282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3282
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3282#FFFFFF#000000##FFFFFF
##2A32821.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3282;
/* rgb */ color: rgb(42, 50, 130);
/* oklch */ color: oklch(36.2% 0.133 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f69a7',
    500: '#2a3282',
    950: '#000000',
  },
}
SCSS
$custom: #2a3282;
$custom-light: #6f69a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3282",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 130
  },
  "hsl": {
    "h": 234.545,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36219,
    "c": 0.13325,
    "h": 273.4
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#2A3282
secondary
#B0A858
accent
#CE4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3282

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

Preview Lab → · Contrast checker → · Palette generator →

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