#2D2888#2D2888

#2D2888 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.154 H 277.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2D2888
RGBrgb(45, 40, 136)
HSLhsl(243, 55%, 35%)
HSVhsv(243, 71%, 53%)
CMYKcmyk(66.9%, 70.6%, 0%, 46.7%)
CIE-LABlab(23.18, 33.30, -52.76)
CIE-LCHlch(23.18, 62.39, 302.26°)
OKLaboklab(35.18% 0.0195 -0.1523)
OKLCHoklch(35.18% 0.154 277.3)
XYZxyz(6.2835, 3.8525, 23.7003)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2888 #838828
analogous
#285388 #2D2888 #5D2888
triadic
#2D2888 #882D28 #28882D
tetradic
#2D2888 #882853 #838828 #28885D
square
#2D2888 #882853 #838828 #28885D
split-complementary
#2D2888 #885D28 #538828
monochromatic
#0E0C29 #1D1A59 #2D2888 #3D36B7 #625BCF

Accessibility & contrast

On white

11.86
#2D2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2888
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2888#FFFFFF#000000##FFFFFF
##2D28881.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d2888;
/* rgb */ color: rgb(45, 40, 136);
/* oklch */ color: oklch(35.2% 0.154 277.3);
Tailwind
colors: {
  custom: {
    50: '#7263ac',
    500: '#2d2888',
    950: '#000000',
  },
}
SCSS
$custom: #2d2888;
$custom-light: #7263ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2888",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 243.125,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3518,
    "c": 0.15352,
    "h": 277.3
  },
  "luminance": 0.03853
}

Semantic roles & 50–950 ramp

primary
#2D2888
secondary
#AFB458
accent
#DE4AD6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D2888

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

Preview Lab → · Contrast checker → · Palette generator →

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