#2A2985#2A2985

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

Color values

HEX#2A2985
RGBrgb(42, 41, 133)
HSLhsl(241, 53%, 34%)
HSVhsv(241, 69%, 52%)
CMYKcmyk(68.4%, 69.2%, 0%, 47.8%)
CIE-LABlab(22.90, 31.19, -51.35)
CIE-LCHlch(22.90, 60.08, 301.28°)
OKLaboklab(34.83% 0.0152 -0.1482)
OKLCHoklch(34.83% 0.149 275.9)
XYZxyz(5.9800, 3.7710, 22.5985)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2985 #848529
analogous
#295685 #2A2985 #582985
triadic
#2A2985 #852A29 #29852A
tetradic
#2A2985 #852956 #848529 #298558
square
#2A2985 #852956 #848529 #298558
split-complementary
#2A2985 #855829 #568529
monochromatic
#0C0C27 #1B1B56 #2A2985 #3937B4 #5D5CCD

Accessibility & contrast

On white

11.97
#2A2985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2985
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2985#FFFFFF#000000##FFFFFF
##2A29851.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2985;
/* rgb */ color: rgb(42, 41, 133);
/* oklch */ color: oklch(34.8% 0.149 275.9);
Tailwind
colors: {
  custom: {
    50: '#7063a9',
    500: '#2a2985',
    950: '#000000',
  },
}
SCSS
$custom: #2a2985;
$custom-light: #7063a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2985",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 240.652,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.14899,
    "h": 275.9
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#2A2985
secondary
#B1B258
accent
#DC4CDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #2A2985

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

Preview Lab → · Contrast checker → · Palette generator →

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