#2A2E82#2A2E82

#2A2E82 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.139 H 274.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A2E82
RGBrgb(42, 46, 130)
HSLhsl(237, 51%, 34%)
HSVhsv(237, 68%, 51%)
CMYKcmyk(67.7%, 64.6%, 0%, 49%)
CIE-LABlab(23.86, 26.83, -47.89)
CIE-LCHlch(23.86, 54.89, 299.26°)
OKLaboklab(35.45% 0.0114 -0.1381)
OKLCHoklch(35.45% 0.139 274.7)
XYZxyz(5.9598, 4.0574, 21.5839)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E82 #827E2A
analogous
#2A5A82 #2A2E82 #522A82
triadic
#2A2E82 #822A2E #2E822A
tetradic
#2A2E82 #822A5A #827E2A #2A8252
square
#2A2E82 #822A5A #827E2A #2A8252
split-complementary
#2A2E82 #82522A #5A822A
monochromatic
#0C0D25 #1B1E54 #2A2E82 #393EB0 #5C61CA

Accessibility & contrast

On white

11.59
#2A2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E82
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E82#FFFFFF#000000##FFFFFF
##2A2E821.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2e82;
/* rgb */ color: rgb(42, 46, 130);
/* oklch */ color: oklch(35.4% 0.139 274.7);
Tailwind
colors: {
  custom: {
    50: '#6f67a7',
    500: '#2a2e82',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e82;
$custom-light: #6f67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e82",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 237.273,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.13853,
    "h": 274.7
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#2A2E82
secondary
#B0AC58
accent
#D44DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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