#2F2272#2F2272

#2F2272 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.131 H 283.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2272
RGBrgb(47, 34, 114)
HSLhsl(250, 54%, 29%)
HSVhsv(250, 70%, 45%)
CMYKcmyk(58.8%, 70.2%, 0%, 55.3%)
CIE-LABlab(19.90, 29.85, -44.17)
CIE-LCHlch(19.90, 53.31, 304.05°)
OKLaboklab(32.22% 0.031 -0.127)
OKLCHoklch(32.22% 0.131 283.7)
XYZxyz(4.7807, 2.9630, 16.2363)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2272 #657222
analogous
#223D72 #2F2272 #572272
triadic
#2F2272 #722F22 #22722F
tetradic
#2F2272 #72223D #657222 #227257
square
#2F2272 #72223D #657222 #227257
split-complementary
#2F2272 #725722 #3D7222
monochromatic
#0A0718 #1C1443 #2F2272 #4230A1 #5B46C8

Accessibility & contrast

On white

13.19
#2F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2272
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2272#FFFFFF#000000##FFFFFF
##2F22721.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#0E3647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2272;
/* rgb */ color: rgb(47, 34, 114);
/* oklch */ color: oklch(32.2% 0.131 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f5e9b',
    500: '#2f2272',
    950: '#000000',
  },
}
SCSS
$custom: #2f2272;
$custom-light: #6f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2272",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 249.75,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.13074,
    "h": 283.7
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2F2272
secondary
#97A54B
accent
#DD4AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2272

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

Preview Lab → · Contrast checker → · Palette generator →

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