#2A2A85#2A2A85

#2A2A85 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.148 H 275.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2A2A85
RGBrgb(42, 42, 133)
HSLhsl(240, 52%, 34%)
HSVhsv(240, 68%, 52%)
CMYKcmyk(68.4%, 68.4%, 0%, 47.8%)
CIE-LABlab(23.14, 30.55, -50.95)
CIE-LCHlch(23.14, 59.41, 300.95°)
OKLaboklab(35.01% 0.0144 -0.1471)
OKLCHoklch(35.01% 0.148 275.6)
XYZxyz(6.0151, 3.8411, 22.6102)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A85 #85852A
analogous
#2A5885 #2A2A85 #582A85
triadic
#2A2A85 #852A2A #2A852A
tetradic
#2A2A85 #852A58 #85852A #2A8558
square
#2A2A85 #852A58 #85852A #2A8558
split-complementary
#2A2A85 #85582A #58852A
monochromatic
#0D0D28 #1B1B56 #2A2A85 #3939B4 #5D5DCC

Accessibility & contrast

On white

11.88
#2A2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A85
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A85#FFFFFF#000000##FFFFFF
##2A2A851.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2a85;
/* rgb */ color: rgb(42, 42, 133);
/* oklch */ color: oklch(35.0% 0.148 275.6);
Tailwind
colors: {
  custom: {
    50: '#7064a9',
    500: '#2a2a85',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a85;
$custom-light: #7064a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a85",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.14777,
    "h": 275.6
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#2A2A85
secondary
#B2B259
accent
#DB4CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #2A2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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