#2F254D#2F254D

#2F254D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.7% C 0.071 H 293.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#2F254D
RGBrgb(47, 37, 77)
HSLhsl(255, 35%, 22%)
HSVhsv(255, 52%, 30%)
CMYKcmyk(39%, 51.9%, 0%, 69.8%)
CIE-LABlab(17.75, 15.52, -23.16)
CIE-LCHlch(17.75, 27.88, 303.82°)
OKLaboklab(29.72% 0.0279 -0.0653)
OKLCHoklch(29.72% 0.071 293.1)
XYZxyz(3.1731, 2.4632, 7.3280)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F254D #434D25
analogous
#252F4D #2F254D #43254D
triadic
#2F254D #4D2F25 #254D2F
tetradic
#2F254D #4D252F #434D25 #254D43
square
#2F254D #4D252F #434D25 #254D43
split-complementary
#2F254D #4D4325 #2F4D25
monochromatic
#0D0A15 #161124 #2F254D #483976 #614DA0

Accessibility & contrast

On white

14.07
#2F254D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F254D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F254D
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F254D#FFFFFF#000000##FFFFFF
##2F254D1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4E
Deuteranopia (green-blind)
#192B4C
Tritanopia (blue-blind)
#282D35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f254d;
/* rgb */ color: rgb(47, 37, 77);
/* oklch */ color: oklch(29.7% 0.071 293.1);
Tailwind
colors: {
  custom: {
    50: '#695f7f',
    500: '#2f254d',
    950: '#000000',
  },
}
SCSS
$custom: #2f254d;
$custom-light: #695f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f254d",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 77
  },
  "hsl": {
    "h": 255,
    "s": 35.088,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29723,
    "c": 0.071,
    "h": 293.1
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#2F254D
secondary
#74804E
accent
#CB5DB0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F254D

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

Preview Lab → · Contrast checker → · Palette generator →

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