#2F2D97#2F2D97

#2F2D97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.167 H 275.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2D97
RGBrgb(47, 45, 151)
HSLhsl(241, 54%, 38%)
HSVhsv(241, 70%, 59%)
CMYKcmyk(68.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(25.91, 35.67, -57.57)
CIE-LCHlch(25.91, 67.72, 301.78°)
OKLaboklab(37.62% 0.0163 -0.1663)
OKLCHoklch(37.62% 0.167 275.6)
XYZxyz(7.6948, 4.7148, 29.7767)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D97 #95972D
analogous
#2D6097 #2F2D97 #642D97
triadic
#2F2D97 #972F2D #2D972F
tetradic
#2F2D97 #972D60 #95972D #2D9764
square
#2F2D97 #972D60 #95972D #2D9764
split-complementary
#2F2D97 #97642D #60972D
monochromatic
#121139 #201F68 #2F2D97 #3F3CC5 #6D6BD3

Accessibility & contrast

On white

10.81
#2F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D97
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D97#FFFFFF#000000##FFFFFF
##2F2D971.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2d97;
/* rgb */ color: rgb(47, 45, 151);
/* oklch */ color: oklch(37.6% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#7667b7',
    500: '#2f2d97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d97;
$custom-light: #7667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d97",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 241.132,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37623,
    "c": 0.16707,
    "h": 275.6
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#2F2D97
secondary
#B8BA66
accent
#DD4ADB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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