#2F2D7D#2F2D7D

#2F2D7D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.132 H 278.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7D
RGBrgb(47, 45, 125)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 49%)
CMYKcmyk(62.4%, 64%, 0%, 51%)
CIE-LABlab(23.54, 26.53, -45.24)
CIE-LCHlch(23.54, 52.44, 300.39°)
OKLaboklab(35.18% 0.019 -0.1301)
OKLCHoklch(35.18% 0.132 278.3)
XYZxyz(5.8112, 3.9613, 19.8564)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7D #7B7D2D
analogous
#2D537D #2F2D7D #572D7D
triadic
#2F2D7D #7D2F2D #2D7D2F
tetradic
#2F2D7D #7D2D53 #7B7D2D #2D7D57
square
#2F2D7D #7D2D53 #7B7D2D #2D7D57
split-complementary
#2F2D7D #7D572D #537D2D
monochromatic
#0D0D23 #1E1D50 #2F2D7D #403DAA #625FC5

Accessibility & contrast

On white

11.72
#2F2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D7D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7D#FFFFFF#000000##FFFFFF
##2F2D7D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2d7d;
/* rgb */ color: rgb(47, 45, 125);
/* oklch */ color: oklch(35.2% 0.132 278.3);
Tailwind
colors: {
  custom: {
    50: '#7166a3',
    500: '#2f2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7d;
$custom-light: #7166a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7d",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 241.5,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35177,
    "c": 0.13152,
    "h": 278.3
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#2F2D7D
secondary
#AAAC5A
accent
#D751D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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