#2F2D9F#2F2D9F

#2F2D9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.177 H 274.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2D9F
RGBrgb(47, 45, 159)
HSLhsl(241, 56%, 40%)
HSVhsv(241, 72%, 62%)
CMYKcmyk(70.4%, 71.7%, 0%, 37.6%)
CIE-LABlab(26.69, 38.42, -61.17)
CIE-LCHlch(26.69, 72.24, 302.13°)
OKLaboklab(38.42% 0.0151 -0.1768)
OKLCHoklch(38.42% 0.177 274.9)
XYZxyz(8.3666, 4.9835, 33.3152)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D9F #9D9F2D
analogous
#2D649F #2F2D9F #682D9F
triadic
#2F2D9F #9F2F2D #2D9F2F
tetradic
#2F2D9F #9F2D64 #9D9F2D #2D9F68
square
#2F2D9F #9F2D64 #9D9F2D #2D9F68
split-complementary
#2F2D9F #9F682D #649F2D
monochromatic
#131240 #21206F #2F2D9F #4340C9 #7270D6

Accessibility & contrast

On white

10.52
#2F2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D9F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D9F#FFFFFF#000000##FFFFFF
##2F2D9F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2d9f;
/* rgb */ color: rgb(47, 45, 159);
/* oklch */ color: oklch(38.4% 0.177 274.9);
Tailwind
colors: {
  custom: {
    50: '#7867bc',
    500: '#2f2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d9f;
$custom-light: #7867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d9f",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 241.053,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.17744,
    "h": 274.9
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#2F2D9F
secondary
#BCBE6A
accent
#DF49DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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