#2F245E#2F245E

#2F245E is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.8% C 0.099 H 287.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2F245E
RGBrgb(47, 36, 94)
HSLhsl(251, 45%, 25%)
HSVhsv(251, 62%, 37%)
CMYKcmyk(50%, 61.7%, 0%, 63.1%)
CIE-LABlab(18.69, 21.79, -33.06)
CIE-LCHlch(18.69, 39.60, 303.39°)
OKLaboklab(30.81% 0.0304 -0.0944)
OKLCHoklch(30.81% 0.099 287.9)
XYZxyz(3.8230, 2.6741, 10.9022)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F245E #535E24
analogous
#24365E #2F245E #4C245E
triadic
#2F245E #5E2F24 #245E2F
tetradic
#2F245E #5E2436 #535E24 #245E4C
square
#2F245E #5E2436 #535E24 #245E4C
split-complementary
#2F245E #5E4C24 #365E24
monochromatic
#0B0816 #191332 #2F245E #45358A #5B46B7

Accessibility & contrast

On white

13.68
#2F245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F245E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F245E#FFFFFF#000000##FFFFFF
##2F245E1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#002C5D
Tritanopia (blue-blind)
#20313D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f245e;
/* rgb */ color: rgb(47, 36, 94);
/* oklch */ color: oklch(30.8% 0.099 287.9);
Tailwind
colors: {
  custom: {
    50: '#6c5f8c',
    500: '#2f245e',
    950: '#000000',
  },
}
SCSS
$custom: #2f245e;
$custom-light: #6c5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f245e",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 251.379,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30809,
    "c": 0.09916,
    "h": 287.9
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#2F245E
secondary
#84924C
accent
#D453BC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F245E

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

Preview Lab → · Contrast checker → · Palette generator →

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