#2A3A82#2A3A82

#2A3A82 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.122 H 270.1°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2A3A82
RGBrgb(42, 58, 130)
HSLhsl(229, 51%, 34%)
HSVhsv(229, 68%, 51%)
CMYKcmyk(67.7%, 55.4%, 0%, 49%)
CIE-LABlab(27.10, 18.65, -42.62)
CIE-LCHlch(27.10, 46.52, 293.63°)
OKLaboklab(37.86% 0.0003 -0.1224)
OKLCHoklch(37.86% 0.122 270.1)
XYZxyz(6.4958, 5.1295, 21.7625)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A82 #82722A
analogous
#2A6682 #2A3A82 #462A82
triadic
#2A3A82 #822A3A #3A822A
tetradic
#2A3A82 #822A66 #82722A #2A8246
square
#2A3A82 #822A66 #82722A #2A8246
split-complementary
#2A3A82 #82462A #66822A
monochromatic
#0C1125 #1B2554 #2A3A82 #394FB0 #5C70CA

Accessibility & contrast

On white

10.37
#2A3A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A3A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A82
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A82#FFFFFF#000000##FFFFFF
##2A3A821.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3a82;
/* rgb */ color: rgb(42, 58, 130);
/* oklch */ color: oklch(37.9% 0.122 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fa7',
    500: '#2a3a82',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a82;
$custom-light: #6e6fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a82",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 229.091,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37859,
    "c": 0.12244,
    "h": 270.1
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#2A3A82
secondary
#B0A058
accent
#C14DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2A3A82

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

Preview Lab → · Contrast checker → · Palette generator →

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