#2F264B#2F264B

#2F264B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.8% C 0.066 H 293.2°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2F264B
RGBrgb(47, 38, 75)
HSLhsl(255, 33%, 22%)
HSVhsv(255, 49%, 29%)
CMYKcmyk(37.3%, 49.3%, 0%, 70.6%)
CIE-LABlab(17.91, 14.18, -21.55)
CIE-LCHlch(17.91, 25.79, 303.35°)
OKLaboklab(29.8% 0.0259 -0.0606)
OKLCHoklch(29.8% 0.066 293.2)
XYZxyz(3.1351, 2.4985, 6.9723)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264B #424B26
analogous
#26304B #2F264B #42264B
triadic
#2F264B #4B2F26 #264B2F
tetradic
#2F264B #4B2630 #424B26 #264B42
square
#2F264B #4B2630 #424B26 #264B42
split-complementary
#2F264B #4B4226 #304B26
monochromatic
#0D0A14 #161122 #2F264B #483B74 #624F9C

Accessibility & contrast

On white

14.00
#2F264B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F264B
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264B#FFFFFF#000000##FFFFFF
##2F264B1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2C4C
Deuteranopia (green-blind)
#1B2B4A
Tritanopia (blue-blind)
#282D34
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264b;
/* rgb */ color: rgb(47, 38, 75);
/* oklch */ color: oklch(29.8% 0.066 293.2);
Tailwind
colors: {
  custom: {
    50: '#69607d',
    500: '#2f264b',
    950: '#000000',
  },
}
SCSS
$custom: #2f264b;
$custom-light: #69607d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264b",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 75
  },
  "hsl": {
    "h": 254.595,
    "s": 32.743,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29803,
    "c": 0.06591,
    "h": 293.2
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#2F264B
secondary
#727E4F
accent
#C95FAF
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060509
muted
#7A797B

Preview Lab

Preview with #2F264B

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

Preview Lab → · Contrast checker → · Palette generator →

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