#2D2885#2D2885

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

Color values

HEX#2D2885
RGBrgb(45, 40, 133)
HSLhsl(243, 54%, 34%)
HSVhsv(243, 70%, 52%)
CMYKcmyk(66.2%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.89, 32.26, -51.35)
CIE-LCHlch(22.89, 60.64, 302.14°)
OKLaboklab(34.89% 0.02 -0.1481)
OKLCHoklch(34.89% 0.149 277.7)
XYZxyz(6.0732, 3.7684, 22.5931)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2885 #808528
analogous
#285285 #2D2885 #5C2885
triadic
#2D2885 #852D28 #28852D
tetradic
#2D2885 #852852 #808528 #28855C
square
#2D2885 #852852 #808528 #28855C
split-complementary
#2D2885 #855C28 #528528
monochromatic
#0D0C27 #1D1A56 #2D2885 #3D36B4 #605ACD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D2885#FFFFFF#000000##FFFFFF
##2D28851.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)
#003A88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2885;
/* rgb */ color: rgb(45, 40, 133);
/* oklch */ color: oklch(34.9% 0.149 277.7);
Tailwind
colors: {
  custom: {
    50: '#7263a9',
    500: '#2d2885',
    950: '#000000',
  },
}
SCSS
$custom: #2d2885;
$custom-light: #7263a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2885",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 243.226,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34885,
    "c": 0.14948,
    "h": 277.7
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#2D2885
secondary
#AEB356
accent
#DD4BD5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2885

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

Preview Lab → · Contrast checker → · Palette generator →

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