#2F2789#2F2789

#2F2789 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.156 H 278.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2789
RGBrgb(47, 39, 137)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 54%)
CMYKcmyk(65.7%, 71.5%, 0%, 46.3%)
CIE-LABlab(23.21, 34.55, -53.33)
CIE-LCHlch(23.21, 63.54, 302.93°)
OKLaboklab(35.27% 0.0229 -0.1539)
OKLCHoklch(35.27% 0.156 278.5)
XYZxyz(6.4117, 3.8610, 24.0694)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2789 #818927
analogous
#275089 #2F2789 #602789
triadic
#2F2789 #892F27 #27892F
tetradic
#2F2789 #892750 #818927 #278960
square
#2F2789 #892750 #818927 #278960
split-complementary
#2F2789 #896027 #508927
monochromatic
#0E0C2A #1F1959 #2F2789 #3F35B9 #645AD0

Accessibility & contrast

On white

11.85
#2F2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2789
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2789#FFFFFF#000000##FFFFFF
##2F27891.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2789;
/* rgb */ color: rgb(47, 39, 137);
/* oklch */ color: oklch(35.3% 0.156 278.5);
Tailwind
colors: {
  custom: {
    50: '#7462ac',
    500: '#2f2789',
    950: '#000000',
  },
}
SCSS
$custom: #2f2789;
$custom-light: #7462ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2789",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 244.898,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3527,
    "c": 0.15557,
    "h": 278.5
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#2F2789
secondary
#ADB557
accent
#DF49D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2789

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

Preview Lab → · Contrast checker → · Palette generator →

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