#2D2A80#2D2A80

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

Color values

HEX#2D2A80
RGBrgb(45, 42, 128)
HSLhsl(242, 51%, 33%)
HSVhsv(242, 67%, 50%)
CMYKcmyk(64.8%, 67.2%, 0%, 49.8%)
CIE-LABlab(22.90, 29.22, -48.19)
CIE-LCHlch(22.90, 56.36, 301.24°)
OKLaboklab(34.75% 0.0189 -0.1389)
OKLCHoklch(34.75% 0.14 277.8)
XYZxyz(5.8052, 3.7719, 20.8400)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A80 #7D802A
analogous
#2A5280 #2D2A80 #582A80
triadic
#2D2A80 #802D2A #2A802D
tetradic
#2D2A80 #802A52 #7D802A #2A8058
square
#2D2A80 #802A52 #7D802A #2A8058
split-complementary
#2D2A80 #80582A #52802A
monochromatic
#0D0C24 #1D1B52 #2D2A80 #3D39AE #5F5BC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2A80#FFFFFF#000000##FFFFFF
##2D2A801.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)
#003A83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2a80;
/* rgb */ color: rgb(45, 42, 128);
/* oklch */ color: oklch(34.8% 0.140 277.8);
Tailwind
colors: {
  custom: {
    50: '#7164a6',
    500: '#2d2a80',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a80;
$custom-light: #7164a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a80",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 242.093,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34751,
    "c": 0.14014,
    "h": 277.8
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#2D2A80
secondary
#ACAF57
accent
#DA4ED5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2D2A80

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

Preview Lab → · Contrast checker → · Palette generator →

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