#2F2D9E#2F2D9E

#2F2D9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.176 H 275.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2D9E
RGBrgb(47, 45, 158)
HSLhsl(241, 56%, 40%)
HSVhsv(241, 72%, 62%)
CMYKcmyk(70.3%, 71.5%, 0%, 38%)
CIE-LABlab(26.59, 38.08, -60.72)
CIE-LCHlch(26.59, 71.67, 302.09°)
OKLaboklab(38.32% 0.0153 -0.1755)
OKLCHoklch(38.32% 0.176 275)
XYZxyz(8.2802, 4.9490, 32.8600)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D9E #9C9E2D
analogous
#2D649E #2F2D9E #682D9E
triadic
#2F2D9E #9E2F2D #2D9E2F
tetradic
#2F2D9E #9E2D64 #9C9E2D #2D9E68
square
#2F2D9E #9E2D64 #9C9E2D #2D9E68
split-complementary
#2F2D9E #9E682D #649E2D
monochromatic
#13123F #211F6E #2F2D9E #4240C9 #716FD6

Accessibility & contrast

On white

10.55
#2F2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D9E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D9E#FFFFFF#000000##FFFFFF
##2F2D9E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2d9e;
/* rgb */ color: rgb(47, 45, 158);
/* oklch */ color: oklch(38.3% 0.176 275.0);
Tailwind
colors: {
  custom: {
    50: '#7867bc',
    500: '#2f2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d9e;
$custom-light: #7867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d9e",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 241.062,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3832,
    "c": 0.17616,
    "h": 275
  },
  "luminance": 0.0495
}

Semantic roles & 50–950 ramp

primary
#2F2D9E
secondary
#BCBD69
accent
#DF49DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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