#2A3081#2A3081

#2A3081 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.134 H 274.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2A3081
RGBrgb(42, 48, 129)
HSLhsl(236, 51%, 34%)
HSVhsv(236, 67%, 51%)
CMYKcmyk(67.4%, 62.8%, 0%, 49.4%)
CIE-LABlab(24.29, 25.11, -46.56)
CIE-LCHlch(24.29, 52.90, 298.34°)
OKLaboklab(35.74% 0.0097 -0.1341)
OKLCHoklch(35.74% 0.134 274.1)
XYZxyz(5.9729, 4.1906, 21.2587)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3081 #817B2A
analogous
#2A5B81 #2A3081 #4F2A81
triadic
#2A3081 #812A30 #30812A
tetradic
#2A3081 #812A5B #817B2A #2A814F
square
#2A3081 #812A5B #817B2A #2A814F
split-complementary
#2A3081 #814F2A #5B812A
monochromatic
#0C0E25 #1B1F53 #2A3081 #3941AF #5C63CA

Accessibility & contrast

On white

11.42
#2A3081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A3081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3081
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3081#FFFFFF#000000##FFFFFF
##2A30811.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3081;
/* rgb */ color: rgb(42, 48, 129);
/* oklch */ color: oklch(35.7% 0.134 274.1);
Tailwind
colors: {
  custom: {
    50: '#6f68a6',
    500: '#2a3081',
    950: '#000000',
  },
}
SCSS
$custom: #2a3081;
$custom-light: #6f68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3081",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 129
  },
  "hsl": {
    "h": 235.862,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3574,
    "c": 0.13448,
    "h": 274.1
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#2A3081
secondary
#AFA957
accent
#D14DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A3081

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

Preview Lab → · Contrast checker → · Palette generator →

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