#2F2D81#2F2D81

#2F2D81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.137 H 277.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2D81
RGBrgb(47, 45, 129)
HSLhsl(241, 48%, 34%)
HSVhsv(241, 65%, 51%)
CMYKcmyk(63.6%, 65.1%, 0%, 49.4%)
CIE-LABlab(23.89, 27.95, -47.20)
CIE-LCHlch(23.89, 54.86, 300.63°)
OKLaboklab(35.54% 0.0188 -0.1359)
OKLCHoklch(35.54% 0.137 277.9)
XYZxyz(6.0718, 4.0656, 21.2294)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D81 #7F812D
analogous
#2D5581 #2F2D81 #592D81
triadic
#2F2D81 #812F2D #2D812F
tetradic
#2F2D81 #812D55 #7F812D #2D8159
square
#2F2D81 #812D55 #7F812D #2D8159
split-complementary
#2F2D81 #81592D #55812D
monochromatic
#0E0D26 #1E1D54 #2F2D81 #403DAE #6361C8

Accessibility & contrast

On white

11.58
#2F2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D81
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D81#FFFFFF#000000##FFFFFF
##2F2D811.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2d81;
/* rgb */ color: rgb(47, 45, 129);
/* oklch */ color: oklch(35.5% 0.137 277.9);
Tailwind
colors: {
  custom: {
    50: '#7166a6',
    500: '#2f2d81',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d81;
$custom-light: #7166a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d81",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 241.429,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35537,
    "c": 0.13719,
    "h": 277.9
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#2F2D81
secondary
#ACAE5C
accent
#D850D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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