#2A3D84#2A3D84

#2A3D84 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.121 H 268.8°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#2A3D84
RGBrgb(42, 61, 132)
HSLhsl(227, 52%, 34%)
HSVhsv(227, 68%, 52%)
CMYKcmyk(68.2%, 53.8%, 0%, 48.2%)
CIE-LABlab(28.10, 17.35, -42.26)
CIE-LCHlch(28.10, 45.68, 292.32°)
OKLaboklab(38.66% -0.0025 -0.1213)
OKLCHoklch(38.66% 0.121 268.8)
XYZxyz(6.7870, 5.4950, 22.5283)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D84 #84712A
analogous
#2A6A84 #2A3D84 #442A84
triadic
#2A3D84 #842A3D #3D842A
tetradic
#2A3D84 #842A6A #84712A #2A8444
square
#2A3D84 #842A6A #84712A #2A8444
split-complementary
#2A3D84 #84442A #6A842A
monochromatic
#0C1227 #1B2856 #2A3D84 #3952B2 #5D74CB

Accessibility & contrast

On white

10.00
#2A3D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A3D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D84
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D84#FFFFFF#000000##FFFFFF
##2A3D841.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104787
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3d84;
/* rgb */ color: rgb(42, 61, 132);
/* oklch */ color: oklch(38.7% 0.121 268.8);
Tailwind
colors: {
  custom: {
    50: '#6e72a8',
    500: '#2a3d84',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d84;
$custom-light: #6e72a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d84",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 132
  },
  "hsl": {
    "h": 227.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38661,
    "c": 0.12134,
    "h": 268.8
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#2A3D84
secondary
#B19E59
accent
#BD4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3D84

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

Preview Lab → · Contrast checker → · Palette generator →

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