#2F2281#2F2281

#2F2281 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.151 H 280.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2281
RGBrgb(47, 34, 129)
HSLhsl(248, 58%, 32%)
HSVhsv(248, 74%, 51%)
CMYKcmyk(63.6%, 73.6%, 0%, 49.4%)
CIE-LABlab(21.33, 34.86, -51.39)
CIE-LCHlch(21.33, 62.10, 304.16°)
OKLaboklab(33.69% 0.0283 -0.1482)
OKLCHoklch(33.69% 0.151 280.8)
XYZxyz(5.7055, 3.3330, 21.1073)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2281 #748122
analogous
#224481 #2F2281 #5F2281
triadic
#2F2281 #812F22 #22812F
tetradic
#2F2281 #812244 #748122 #22815F
square
#2F2281 #812244 #748122 #22815F
split-complementary
#2F2281 #815F22 #448122
monochromatic
#0C0820 #1D1551 #2F2281 #412FB1 #5F4DD0

Accessibility & contrast

On white

12.60
#2F2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2281
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2281#FFFFFF#000000##FFFFFF
##2F22811.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2281;
/* rgb */ color: rgb(47, 34, 129);
/* oklch */ color: oklch(33.7% 0.151 280.8);
Tailwind
colors: {
  custom: {
    50: '#725fa7',
    500: '#2f2281',
    950: '#000000',
  },
}
SCSS
$custom: #2f2281;
$custom-light: #725fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2281",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 248.211,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3369,
    "c": 0.15084,
    "h": 280.8
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#2F2281
secondary
#A5B34B
accent
#E146CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2281

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

Preview Lab → · Contrast checker → · Palette generator →

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