#2D2891#2D2891

#2D2891 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.165 H 276.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2D2891
RGBrgb(45, 40, 145)
HSLhsl(243, 57%, 36%)
HSVhsv(243, 72%, 57%)
CMYKcmyk(69%, 72.4%, 0%, 43.1%)
CIE-LABlab(24.06, 36.40, -56.91)
CIE-LCHlch(24.06, 67.55, 302.61°)
OKLaboklab(36.08% 0.0181 -0.1644)
OKLCHoklch(36.08% 0.165 276.3)
XYZxyz(6.9501, 4.1192, 27.2114)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2891 #8C9128
analogous
#285891 #2D2891 #622891
triadic
#2D2891 #912D28 #28912D
tetradic
#2D2891 #912858 #8C9128 #289162
square
#2D2891 #912858 #8C9128 #289162
split-complementary
#2D2891 #916228 #589128
monochromatic
#0F0E31 #1E1B61 #2D2891 #3C35C1 #6660D3

Accessibility & contrast

On white

11.51
#2D2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2891
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2891#FFFFFF#000000##FFFFFF
##2D28911.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2891;
/* rgb */ color: rgb(45, 40, 145);
/* oklch */ color: oklch(36.1% 0.165 276.3);
Tailwind
colors: {
  custom: {
    50: '#7463b2',
    500: '#2d2891',
    950: '#000000',
  },
}
SCSS
$custom: #2d2891;
$custom-light: #7463b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2891",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 242.857,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36083,
    "c": 0.16538,
    "h": 276.3
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#2D2891
secondary
#B4B95C
accent
#E048D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D2891

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

Preview Lab → · Contrast checker → · Palette generator →

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