#2F264A#2F264A

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

Color values

HEX#2F264A
RGBrgb(47, 38, 74)
HSLhsl(255, 32%, 22%)
HSVhsv(255, 49%, 29%)
CMYKcmyk(36.5%, 48.6%, 0%, 71%)
CIE-LABlab(17.85, 13.86, -20.96)
CIE-LCHlch(17.85, 25.13, 303.48°)
OKLaboklab(29.74% 0.0258 -0.0589)
OKLCHoklch(29.74% 0.064 293.6)
XYZxyz(3.1011, 2.4849, 6.7935)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264A #414A26
analogous
#262F4A #2F264A #41264A
triadic
#2F264A #4A2F26 #264A2F
tetradic
#2F264A #4A262F #414A26 #264A41
square
#2F264A #4A262F #414A26 #264A41
split-complementary
#2F264A #4A4126 #2F4A26
monochromatic
#0D0A14 #151122 #2F264A #493B72 #62509B

Accessibility & contrast

On white

14.03
#2F264A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F264A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F264A
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264A#FFFFFF#000000##FFFFFF
##2F264A1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2C4B
Deuteranopia (green-blind)
#1C2B49
Tritanopia (blue-blind)
#292D34
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264a;
/* rgb */ color: rgb(47, 38, 74);
/* oklch */ color: oklch(29.7% 0.064 293.6);
Tailwind
colors: {
  custom: {
    50: '#69607c',
    500: '#2f264a',
    950: '#000000',
  },
}
SCSS
$custom: #2f264a;
$custom-light: #69607c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264a",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 74
  },
  "hsl": {
    "h": 255,
    "s": 32.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29736,
    "c": 0.06427,
    "h": 293.6
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#2F264A
secondary
#717D4F
accent
#C85FAE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060509
muted
#7A797B

Preview Lab

Preview with #2F264A

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

Preview Lab → · Contrast checker → · Palette generator →

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