#2F245C#2F245C

#2F245C is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.6% C 0.096 H 288.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2F245C
RGBrgb(47, 36, 92)
HSLhsl(252, 44%, 25%)
HSVhsv(252, 61%, 36%)
CMYKcmyk(48.9%, 60.9%, 0%, 63.9%)
CIE-LABlab(18.53, 21.12, -31.98)
CIE-LCHlch(18.53, 38.33, 303.44°)
OKLaboklab(30.65% 0.0304 -0.0912)
OKLCHoklch(30.65% 0.096 288.4)
XYZxyz(3.7344, 2.6387, 10.4357)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F245C #515C24
analogous
#24355C #2F245C #4B245C
triadic
#2F245C #5C2F24 #245C2F
tetradic
#2F245C #5C2435 #515C24 #245C4B
square
#2F245C #5C2435 #515C24 #245C4B
split-complementary
#2F245C #5C4B24 #355C24
monochromatic
#0B0916 #191330 #2F245C #453588 #5C46B4

Accessibility & contrast

On white

13.75
#2F245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F245C
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F245C#FFFFFF#000000##FFFFFF
##2F245C1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5E
Deuteranopia (green-blind)
#042C5B
Tritanopia (blue-blind)
#21303C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f245c;
/* rgb */ color: rgb(47, 36, 92);
/* oklch */ color: oklch(30.6% 0.096 288.4);
Tailwind
colors: {
  custom: {
    50: '#6b5f8b',
    500: '#2f245c',
    950: '#000000',
  },
}
SCSS
$custom: #2f245c;
$custom-light: #6b5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f245c",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 251.786,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30646,
    "c": 0.09613,
    "h": 288.4
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#2F245C
secondary
#82904C
accent
#D354BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F245C

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

Preview Lab → · Contrast checker → · Palette generator →

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