#2D2287#2D2287

#2D2287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.159 H 278.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2D2287
RGBrgb(45, 34, 135)
HSLhsl(247, 60%, 33%)
HSVhsv(247, 75%, 53%)
CMYKcmyk(66.7%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.77, 36.59, -54.46)
CIE-LCHlch(21.77, 65.61, 303.90°)
OKLaboklab(34.14% 0.0241 -0.1572)
OKLCHoklch(34.14% 0.159 278.7)
XYZxyz(6.0260, 3.4507, 23.2655)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2287 #7C8722
analogous
#224987 #2D2287 #5F2287
triadic
#2D2287 #872D22 #22872D
tetradic
#2D2287 #872249 #7C8722 #22875F
square
#2D2287 #872249 #7C8722 #22875F
split-complementary
#2D2287 #875F22 #498722
monochromatic
#0C0925 #1D1656 #2D2287 #3D2EB8 #5F50D3

Accessibility & contrast

On white

12.42
#2D2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2287
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2287#FFFFFF#000000##FFFFFF
##2D22871.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d2287;
/* rgb */ color: rgb(45, 34, 135);
/* oklch */ color: oklch(34.1% 0.159 278.7);
Tailwind
colors: {
  custom: {
    50: '#735fab',
    500: '#2d2287',
    950: '#000000',
  },
}
SCSS
$custom: #2d2287;
$custom-light: #735fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2287",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 246.535,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3414,
    "c": 0.15904,
    "h": 278.7
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#2D2287
secondary
#ABB74E
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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