#2F2D95#2F2D95

#2F2D95 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.164 H 275.8°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2F2D95
RGBrgb(47, 45, 149)
HSLhsl(241, 54%, 38%)
HSVhsv(241, 70%, 58%)
CMYKcmyk(68.5%, 69.8%, 0%, 41.6%)
CIE-LABlab(25.71, 34.98, -56.65)
CIE-LCHlch(25.71, 66.58, 301.69°)
OKLaboklab(37.43% 0.0166 -0.1636)
OKLCHoklch(37.43% 0.164 275.8)
XYZxyz(7.5337, 4.6504, 28.9285)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D95 #93952D
analogous
#2D5F95 #2F2D95 #632D95
triadic
#2F2D95 #952F2D #2D952F
tetradic
#2F2D95 #952D5F #93952D #2D9563
square
#2F2D95 #952D5F #93952D #2D9563
split-complementary
#2F2D95 #95632D #5F952D
monochromatic
#111137 #201F66 #2F2D95 #3E3BC4 #6C6AD2

Accessibility & contrast

On white

10.88
#2F2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D95
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D95#FFFFFF#000000##FFFFFF
##2F2D951.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2d95;
/* rgb */ color: rgb(47, 45, 149);
/* oklch */ color: oklch(37.4% 0.164 275.8);
Tailwind
colors: {
  custom: {
    50: '#7667b5',
    500: '#2f2d95',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d95;
$custom-light: #7667b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d95",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 241.154,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37426,
    "c": 0.16444,
    "h": 275.8
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#2F2D95
secondary
#B7B965
accent
#DD4BDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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