#2F2D7E#2F2D7E

#2F2D7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.133 H 278.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2D7E
RGBrgb(47, 45, 126)
HSLhsl(241, 47%, 34%)
HSVhsv(241, 64%, 49%)
CMYKcmyk(62.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.63, 26.89, -45.73)
CIE-LCHlch(23.63, 53.05, 300.45°)
OKLaboklab(35.27% 0.019 -0.1316)
OKLCHoklch(35.27% 0.133 278.2)
XYZxyz(5.8754, 3.9870, 20.1946)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D7E #7C7E2D
analogous
#2D537E #2F2D7E #572D7E
triadic
#2F2D7E #7E2F2D #2D7E2F
tetradic
#2F2D7E #7E2D53 #7C7E2D #2D7E57
square
#2F2D7E #7E2D53 #7C7E2D #2D7E57
split-complementary
#2F2D7E #7E572D #537E2D
monochromatic
#0D0D24 #1E1D51 #2F2D7E #403DAB #625FC6

Accessibility & contrast

On white

11.68
#2F2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2D7E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D7E#FFFFFF#000000##FFFFFF
##2F2D7E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2d7e;
/* rgb */ color: rgb(47, 45, 126);
/* oklch */ color: oklch(35.3% 0.133 278.2);
Tailwind
colors: {
  custom: {
    50: '#7166a4',
    500: '#2f2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d7e;
$custom-light: #7166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d7e",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 241.481,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.13294,
    "h": 278.2
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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