#2F2575#2F2575

#2F2575 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.131 H 282.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2F2575
RGBrgb(47, 37, 117)
HSLhsl(248, 52%, 30%)
HSVhsv(248, 68%, 46%)
CMYKcmyk(59.8%, 68.4%, 0%, 54.1%)
CIE-LABlab(20.87, 28.96, -44.50)
CIE-LCHlch(20.87, 53.10, 303.06°)
OKLaboklab(33.01% 0.0276 -0.128)
OKLCHoklch(33.01% 0.131 282.2)
XYZxyz(5.0437, 3.2115, 17.1803)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2575 #6B7525
analogous
#254375 #2F2575 #572575
triadic
#2F2575 #752F25 #25752F
tetradic
#2F2575 #752543 #6B7525 #257557
square
#2F2575 #752543 #6B7525 #257557
split-complementary
#2F2575 #755725 #437525
monochromatic
#0A0818 #1C1647 #2F2575 #4234A3 #5D4EC7

Accessibility & contrast

On white

12.79
#2F2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2575
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2575#FFFFFF#000000##FFFFFF
##2F25751.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#083949
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2575;
/* rgb */ color: rgb(47, 37, 117);
/* oklch */ color: oklch(33.0% 0.131 282.2);
Tailwind
colors: {
  custom: {
    50: '#70609d',
    500: '#2f2575',
    950: '#000000',
  },
}
SCSS
$custom: #2f2575;
$custom-light: #70609d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2575",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 247.5,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33011,
    "c": 0.13094,
    "h": 282.2
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#2F2575
secondary
#9CA84E
accent
#DB4CCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2575

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

Preview Lab → · Contrast checker → · Palette generator →

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