#2A2D85#2A2D85

#2A2D85 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.144 H 274.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A2D85
RGBrgb(42, 45, 133)
HSLhsl(238, 52%, 34%)
HSVhsv(238, 68%, 52%)
CMYKcmyk(68.4%, 66.2%, 0%, 47.8%)
CIE-LABlab(23.88, 28.59, -49.75)
CIE-LCHlch(23.88, 57.38, 299.89°)
OKLaboklab(35.54% 0.012 -0.1435)
OKLCHoklch(35.54% 0.144 274.8)
XYZxyz(6.1255, 4.0619, 22.6470)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D85 #85822A
analogous
#2A5B85 #2A2D85 #552A85
triadic
#2A2D85 #852A2D #2D852A
tetradic
#2A2D85 #852A5B #85822A #2A8555
square
#2A2D85 #852A5B #85822A #2A8555
split-complementary
#2A2D85 #85552A #5B852A
monochromatic
#0D0E28 #1B1D56 #2A2D85 #393DB4 #5D61CC

Accessibility & contrast

On white

11.59
#2A2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D85
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D85#FFFFFF#000000##FFFFFF
##2A2D851.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003583
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2d85;
/* rgb */ color: rgb(42, 45, 133);
/* oklch */ color: oklch(35.5% 0.144 274.8);
Tailwind
colors: {
  custom: {
    50: '#7066a9',
    500: '#2a2d85',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d85;
$custom-light: #7066a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d85",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 238.022,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35543,
    "c": 0.14402,
    "h": 274.8
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#2A2D85
secondary
#B2AF59
accent
#D74CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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