#2A2D82#2A2D82

#2A2D82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.140 H 275.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2D82
RGBrgb(42, 45, 130)
HSLhsl(238, 51%, 34%)
HSVhsv(238, 68%, 51%)
CMYKcmyk(67.7%, 65.4%, 0%, 49%)
CIE-LABlab(23.61, 27.50, -48.31)
CIE-LCHlch(23.61, 55.58, 299.65°)
OKLaboklab(35.26% 0.0123 -0.1393)
OKLCHoklch(35.26% 0.14 275)
XYZxyz(5.9212, 3.9802, 21.5710)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D82 #827F2A
analogous
#2A5982 #2A2D82 #532A82
triadic
#2A2D82 #822A2D #2D822A
tetradic
#2A2D82 #822A59 #827F2A #2A8253
square
#2A2D82 #822A59 #827F2A #2A8253
split-complementary
#2A2D82 #82532A #59822A
monochromatic
#0C0D25 #1B1D54 #2A2D82 #393DB0 #5C60CA

Accessibility & contrast

On white

11.69
#2A2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D82
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D82#FFFFFF#000000##FFFFFF
##2A2D821.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2d82;
/* rgb */ color: rgb(42, 45, 130);
/* oklch */ color: oklch(35.3% 0.140 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f66a7',
    500: '#2a2d82',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d82;
$custom-light: #6f66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d82",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 237.955,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.13982,
    "h": 275
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#2A2D82
secondary
#B0AD58
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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