#2A3984#2A3984

#2A3984 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.127 H 270.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A3984
RGBrgb(42, 57, 132)
HSLhsl(230, 52%, 34%)
HSVhsv(230, 68%, 52%)
CMYKcmyk(68.2%, 56.8%, 0%, 48.2%)
CIE-LABlab(26.97, 20.09, -44.08)
CIE-LCHlch(26.97, 48.45, 294.51°)
OKLaboklab(37.81% 0.0014 -0.1267)
OKLCHoklch(37.81% 0.127 270.6)
XYZxyz(6.5814, 5.0838, 22.4598)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3984 #84752A
analogous
#2A6684 #2A3984 #482A84
triadic
#2A3984 #842A39 #39842A
tetradic
#2A3984 #842A66 #84752A #2A8448
square
#2A3984 #842A66 #84752A #2A8448
split-complementary
#2A3984 #84482A #66842A
monochromatic
#0C1127 #1B2556 #2A3984 #394DB2 #5D6FCB

Accessibility & contrast

On white

10.41
#2A3984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A3984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3984
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3984#FFFFFF#000000##FFFFFF
##2A39841.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3984;
/* rgb */ color: rgb(42, 57, 132);
/* oklch */ color: oklch(37.8% 0.127 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f6fa8',
    500: '#2a3984',
    950: '#000000',
  },
}
SCSS
$custom: #2a3984;
$custom-light: #6f6fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3984",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 132
  },
  "hsl": {
    "h": 230,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.12675,
    "h": 270.6
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#2A3984
secondary
#B1A259
accent
#C34DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3984

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

Preview Lab → · Contrast checker → · Palette generator →

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