#2A2A83#2A2A83

#2A2A83 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.145 H 275.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2A2A83
RGBrgb(42, 42, 131)
HSLhsl(240, 51%, 34%)
HSVhsv(240, 68%, 51%)
CMYKcmyk(67.9%, 67.9%, 0%, 48.6%)
CIE-LABlab(22.95, 29.83, -50.00)
CIE-LCHlch(22.95, 58.23, 300.82°)
OKLaboklab(34.81% 0.0147 -0.1443)
OKLCHoklch(34.81% 0.145 275.8)
XYZxyz(5.8782, 3.7864, 21.8894)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A83 #83832A
analogous
#2A5783 #2A2A83 #572A83
triadic
#2A2A83 #832A2A #2A832A
tetradic
#2A2A83 #832A57 #83832A #2A8357
square
#2A2A83 #832A57 #83832A #2A8357
split-complementary
#2A2A83 #83572A #57832A
monochromatic
#0C0C26 #1B1B55 #2A2A83 #3939B1 #5D5DCB

Accessibility & contrast

On white

11.95
#2A2A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A83
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A83#FFFFFF#000000##FFFFFF
##2A2A831.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2a83;
/* rgb */ color: rgb(42, 42, 131);
/* oklch */ color: oklch(34.8% 0.145 275.8);
Tailwind
colors: {
  custom: {
    50: '#7064a8',
    500: '#2a2a83',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a83;
$custom-light: #7064a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a83",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34814,
    "c": 0.14502,
    "h": 275.8
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#2A2A83
secondary
#B1B158
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2A83

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

Preview Lab → · Contrast checker → · Palette generator →

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