#2F2283#2F2283

#2F2283 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.153 H 280.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2283
RGBrgb(47, 34, 131)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 51%)
CMYKcmyk(64.1%, 74%, 0%, 48.6%)
CIE-LABlab(21.53, 35.53, -52.32)
CIE-LCHlch(21.53, 63.25, 304.18°)
OKLaboklab(33.89% 0.0278 -0.1509)
OKLCHoklch(33.89% 0.153 280.4)
XYZxyz(5.8398, 3.3866, 21.8143)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2283 #768322
analogous
#224683 #2F2283 #5F2283
triadic
#2F2283 #832F22 #22832F
tetradic
#2F2283 #832246 #768322 #22835F
square
#2F2283 #832246 #768322 #22835F
split-complementary
#2F2283 #835F22 #468322
monochromatic
#0C0922 #1E1552 #2F2283 #402FB4 #604ED1

Accessibility & contrast

On white

12.52
#2F2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2283
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2283#FFFFFF#000000##FFFFFF
##2F22831.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2283;
/* rgb */ color: rgb(47, 34, 131);
/* oklch */ color: oklch(33.9% 0.153 280.4);
Tailwind
colors: {
  custom: {
    50: '#735fa8',
    500: '#2f2283',
    950: '#000000',
  },
}
SCSS
$custom: #2f2283;
$custom-light: #735fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2283",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 248.041,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33893,
    "c": 0.15344,
    "h": 280.4
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#2F2283
secondary
#A7B44C
accent
#E246CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2283

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

Preview Lab → · Contrast checker → · Palette generator →

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