#2F2381#2F2381

#2F2381 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.150 H 280.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2F2381
RGBrgb(47, 35, 129)
HSLhsl(248, 57%, 32%)
HSVhsv(248, 73%, 51%)
CMYKcmyk(63.6%, 72.9%, 0%, 49.4%)
CIE-LABlab(21.55, 34.27, -51.03)
CIE-LCHlch(21.55, 61.47, 303.88°)
OKLaboklab(33.84% 0.0275 -0.1471)
OKLCHoklch(33.84% 0.15 280.6)
XYZxyz(5.7345, 3.3910, 21.1170)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2381 #758123
analogous
#234681 #2F2381 #5E2381
triadic
#2F2381 #812F23 #23812F
tetradic
#2F2381 #812346 #758123 #23815E
square
#2F2381 #812346 #758123 #23815E
split-complementary
#2F2381 #815E23 #468123
monochromatic
#0C0921 #1D1651 #2F2381 #4130B1 #5F4FCF

Accessibility & contrast

On white

12.51
#2F2381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2381
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2381#FFFFFF#000000##FFFFFF
##2F23811.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2381;
/* rgb */ color: rgb(47, 35, 129);
/* oklch */ color: oklch(33.8% 0.150 280.6);
Tailwind
colors: {
  custom: {
    50: '#725fa7',
    500: '#2f2381',
    950: '#000000',
  },
}
SCSS
$custom: #2f2381;
$custom-light: #725fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2381",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 247.66,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.14968,
    "h": 280.6
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#2F2381
secondary
#A6B34D
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F2381

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

Preview Lab → · Contrast checker → · Palette generator →

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