#2A3682#2A3682

#2A3682 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.128 H 271.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2A3682
RGBrgb(42, 54, 130)
HSLhsl(232, 51%, 34%)
HSVhsv(232, 68%, 51%)
CMYKcmyk(67.7%, 58.5%, 0%, 49%)
CIE-LABlab(25.99, 21.40, -44.43)
CIE-LCHlch(25.99, 49.31, 295.72°)
OKLaboklab(37.02% 0.0042 -0.1278)
OKLCHoklch(37.02% 0.128 271.9)
XYZxyz(6.3019, 4.7417, 21.6979)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3682 #82762A
analogous
#2A6282 #2A3682 #4A2A82
triadic
#2A3682 #822A36 #36822A
tetradic
#2A3682 #822A62 #82762A #2A824A
square
#2A3682 #822A62 #82762A #2A824A
split-complementary
#2A3682 #824A2A #62822A
monochromatic
#0C1025 #1B2354 #2A3682 #3949B0 #5C6BCA

Accessibility & contrast

On white

10.78
#2A3682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A3682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3682
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3682#FFFFFF#000000##FFFFFF
##2A36821.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3682;
/* rgb */ color: rgb(42, 54, 130);
/* oklch */ color: oklch(37.0% 0.128 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f6ca7',
    500: '#2a3682',
    950: '#000000',
  },
}
SCSS
$custom: #2a3682;
$custom-light: #6f6ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3682",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 231.818,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37023,
    "c": 0.12788,
    "h": 271.9
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#2A3682
secondary
#B0A458
accent
#C74DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3682

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

Preview Lab → · Contrast checker → · Palette generator →

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