#2F2D9D#2F2D9D

#2F2D9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.175 H 275.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2F2D9D
RGBrgb(47, 45, 157)
HSLhsl(241, 55%, 40%)
HSVhsv(241, 71%, 62%)
CMYKcmyk(70.1%, 71.3%, 0%, 38.4%)
CIE-LABlab(26.49, 37.74, -60.28)
CIE-LCHlch(26.49, 71.11, 302.05°)
OKLaboklab(38.22% 0.0154 -0.1742)
OKLCHoklch(38.22% 0.175 275.1)
XYZxyz(8.1945, 4.9147, 32.4085)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D9D #9B9D2D
analogous
#2D639D #2F2D9D #672D9D
triadic
#2F2D9D #9D2F2D #2D9D2F
tetradic
#2F2D9D #9D2D63 #9B9D2D #2D9D67
square
#2F2D9D #9D2D63 #9B9D2D #2D9D67
split-complementary
#2F2D9D #9D672D #639D2D
monochromatic
#13123E #211F6D #2F2D9D #423FC8 #716FD6

Accessibility & contrast

On white

10.59
#2F2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D9D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D9D#FFFFFF#000000##FFFFFF
##2F2D9D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2d9d;
/* rgb */ color: rgb(47, 45, 157);
/* oklch */ color: oklch(38.2% 0.175 275.1);
Tailwind
colors: {
  custom: {
    50: '#7867bb',
    500: '#2f2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d9d;
$custom-light: #7867bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d9d",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 241.071,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.17487,
    "h": 275.1
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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