#2F2D7F#2F2D7F

#2F2D7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.134 H 278.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7F
RGBrgb(47, 45, 127)
HSLhsl(241, 48%, 34%)
HSVhsv(241, 65%, 50%)
CMYKcmyk(63%, 64.6%, 0%, 50.2%)
CIE-LABlab(23.71, 27.24, -46.22)
CIE-LCHlch(23.71, 53.65, 300.51°)
OKLaboklab(35.36% 0.0189 -0.133)
OKLCHoklch(35.36% 0.134 278.1)
XYZxyz(5.9402, 4.0130, 20.5361)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7F #7D7F2D
analogous
#2D547F #2F2D7F #582D7F
triadic
#2F2D7F #7F2F2D #2D7F2F
tetradic
#2F2D7F #7F2D54 #7D7F2D #2D7F58
square
#2F2D7F #7F2D54 #7D7F2D #2D7F58
split-complementary
#2F2D7F #7F582D #547F2D
monochromatic
#0E0D25 #1E1D52 #2F2D7F #403DAC #6260C7

Accessibility & contrast

On white

11.65
#2F2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D7F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7F#FFFFFF#000000##FFFFFF
##2F2D7F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2d7f;
/* rgb */ color: rgb(47, 45, 127);
/* oklch */ color: oklch(35.4% 0.134 278.1);
Tailwind
colors: {
  custom: {
    50: '#7166a5',
    500: '#2f2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7f;
$custom-light: #7166a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7f",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 241.463,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.13436,
    "h": 278.1
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#2F2D7F
secondary
#ABAD5B
accent
#D751D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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