#2F254A#2F254A

#2F254A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.5% C 0.066 H 294.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2F254A
RGBrgb(47, 37, 74)
HSLhsl(256, 33%, 22%)
HSVhsv(256, 50%, 29%)
CMYKcmyk(36.5%, 50%, 0%, 71%)
CIE-LABlab(17.56, 14.57, -21.42)
CIE-LCHlch(17.56, 25.90, 304.22°)
OKLaboklab(29.52% 0.0274 -0.0602)
OKLCHoklch(29.52% 0.066 294.4)
XYZxyz(3.0696, 2.4218, 6.7830)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F254A #404A25
analogous
#252E4A #2F254A #42254A
triadic
#2F254A #4A2F25 #254A2F
tetradic
#2F254A #4A252E #404A25 #254A42
square
#2F254A #4A252E #404A25 #254A42
split-complementary
#2F254A #4A4225 #2E4A25
monochromatic
#0D0A14 #151121 #2F254A #493973 #634E9C

Accessibility & contrast

On white

14.15
#2F254A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F254A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F254A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F254A#FFFFFF#000000##FFFFFF
##2F254A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192B4B
Deuteranopia (green-blind)
#1B2A49
Tritanopia (blue-blind)
#292C34
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f254a;
/* rgb */ color: rgb(47, 37, 74);
/* oklch */ color: oklch(29.5% 0.066 294.4);
Tailwind
colors: {
  custom: {
    50: '#695f7d',
    500: '#2f254a',
    950: '#000000',
  },
}
SCSS
$custom: #2f254a;
$custom-light: #695f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f254a",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 74
  },
  "hsl": {
    "h": 256.216,
    "s": 33.333,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29518,
    "c": 0.06615,
    "h": 294.4
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#2F254A
secondary
#707D4E
accent
#C95EAD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F254A

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

Preview Lab → · Contrast checker → · Palette generator →

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