#2F2181#2F2181

#2F2181 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.152 H 281.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2181
RGBrgb(47, 33, 129)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(63.6%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.12, 35.45, -51.73)
CIE-LCHlch(21.12, 62.72, 304.42°)
OKLaboklab(33.54% 0.029 -0.1492)
OKLCHoklch(33.54% 0.152 281)
XYZxyz(5.6773, 3.2766, 21.0979)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2181 #738121
analogous
#214381 #2F2181 #5F2181
triadic
#2F2181 #812F21 #21812F
tetradic
#2F2181 #812143 #738121 #21815F
square
#2F2181 #812143 #738121 #21815F
split-complementary
#2F2181 #815F21 #438121
monochromatic
#0B0820 #1D1550 #2F2181 #412DB2 #5F4BD1

Accessibility & contrast

On white

12.69
#2F2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2181
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2181#FFFFFF#000000##FFFFFF
##2F21811.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2181;
/* rgb */ color: rgb(47, 33, 129);
/* oklch */ color: oklch(33.5% 0.152 281.0);
Tailwind
colors: {
  custom: {
    50: '#735ea7',
    500: '#2f2181',
    950: '#000000',
  },
}
SCSS
$custom: #2f2181;
$custom-light: #735ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2181",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 248.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3354,
    "c": 0.15198,
    "h": 281
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#2F2181
secondary
#A4B44A
accent
#E245CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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