#2D2D95#2D2D95

#2D2D95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.165 H 274.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2D2D95
RGBrgb(45, 45, 149)
HSLhsl(240, 54%, 38%)
HSVhsv(240, 70%, 58%)
CMYKcmyk(69.8%, 69.8%, 0%, 41.6%)
CIE-LABlab(25.58, 34.72, -56.89)
CIE-LCHlch(25.58, 66.64, 301.40°)
OKLaboklab(37.29% 0.0141 -0.1643)
OKLCHoklch(37.29% 0.165 274.9)
XYZxyz(7.4436, 4.6039, 28.9243)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D95 #95952D
analogous
#2D6195 #2D2D95 #612D95
triadic
#2D2D95 #952D2D #2D952D
tetradic
#2D2D95 #952D61 #95952D #2D9561
square
#2D2D95 #952D61 #95952D #2D9561
split-complementary
#2D2D95 #95612D #61952D
monochromatic
#111137 #1F1F66 #2D2D95 #3B3BC4 #6A6AD2

Accessibility & contrast

On white

10.93
#2D2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D95
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D95#FFFFFF#000000##FFFFFF
##2D2D951.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d2d95;
/* rgb */ color: rgb(45, 45, 149);
/* oklch */ color: oklch(37.3% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#7566b5',
    500: '#2d2d95',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d95;
$custom-light: #7566b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d95",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37289,
    "c": 0.16494,
    "h": 274.9
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#2D2D95
secondary
#B9B965
accent
#DD4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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