#2A2D83#2A2D83

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

Color values

HEX#2A2D83
RGBrgb(42, 45, 131)
HSLhsl(238, 51%, 34%)
HSVhsv(238, 68%, 51%)
CMYKcmyk(67.9%, 65.6%, 0%, 48.6%)
CIE-LABlab(23.70, 27.86, -48.79)
CIE-LCHlch(23.70, 56.18, 299.73°)
OKLaboklab(35.35% 0.0122 -0.1407)
OKLCHoklch(35.35% 0.141 275)
XYZxyz(5.9886, 4.0072, 21.9262)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D83 #83802A
analogous
#2A5A83 #2A2D83 #542A83
triadic
#2A2D83 #832A2D #2D832A
tetradic
#2A2D83 #832A5A #83802A #2A8354
square
#2A2D83 #832A5A #83802A #2A8354
split-complementary
#2A2D83 #83542A #5A832A
monochromatic
#0C0D26 #1B1D55 #2A2D83 #393DB1 #5D60CB

Accessibility & contrast

On white

11.66
#2A2D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D83
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D83#FFFFFF#000000##FFFFFF
##2A2D831.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2d83;
/* rgb */ color: rgb(42, 45, 131);
/* oklch */ color: oklch(35.4% 0.141 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f66a8',
    500: '#2a2d83',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d83;
$custom-light: #6f66a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d83",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 131
  },
  "hsl": {
    "h": 237.978,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35355,
    "c": 0.14123,
    "h": 275
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#2A2D83
secondary
#B1AE58
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2D83

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

Preview Lab → · Contrast checker → · Palette generator →

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