#2D2F95#2D2F95

#2D2F95 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.163 H 274.5°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2D2F95
RGBrgb(45, 47, 149)
HSLhsl(239, 54%, 38%)
HSVhsv(239, 70%, 58%)
CMYKcmyk(69.8%, 68.5%, 0%, 41.6%)
CIE-LABlab(26.04, 33.46, -56.12)
CIE-LCHlch(26.04, 65.34, 300.80°)
OKLaboklab(37.63% 0.0127 -0.1621)
OKLCHoklch(37.63% 0.163 274.5)
XYZxyz(7.5217, 4.7601, 28.9504)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F95 #95932D
analogous
#2D6395 #2D2F95 #5F2D95
triadic
#2D2F95 #952D2F #2F952D
tetradic
#2D2F95 #952D63 #95932D #2D955F
square
#2D2F95 #952D63 #95932D #2D955F
split-complementary
#2D2F95 #955F2D #63952D
monochromatic
#111137 #1F2066 #2D2F95 #3B3EC4 #6A6CD2

Accessibility & contrast

On white

10.76
#2D2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2D2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F95
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F95#FFFFFF#000000##FFFFFF
##2D2F951.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003993
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2f95;
/* rgb */ color: rgb(45, 47, 149);
/* oklch */ color: oklch(37.6% 0.163 274.5);
Tailwind
colors: {
  custom: {
    50: '#7568b5',
    500: '#2d2f95',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f95;
$custom-light: #7568b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f95",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 238.846,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37626,
    "c": 0.16259,
    "h": 274.5
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#2D2F95
secondary
#B9B765
accent
#DA4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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