#2F2773#2F2773

#2F2773 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.125 H 281.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2773
RGBrgb(47, 39, 115)
HSLhsl(246, 49%, 30%)
HSVhsv(246, 66%, 45%)
CMYKcmyk(59.1%, 66.1%, 0%, 54.9%)
CIE-LABlab(21.18, 26.98, -42.71)
CIE-LCHlch(21.18, 50.52, 302.28°)
OKLaboklab(33.18% 0.0258 -0.1227)
OKLCHoklch(33.18% 0.125 281.9)
XYZxyz(4.9914, 3.2929, 16.5889)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2773 #6B7327
analogous
#274573 #2F2773 #552773
triadic
#2F2773 #732F27 #27732F
tetradic
#2F2773 #732745 #6B7327 #277355
square
#2F2773 #732745 #6B7327 #277355
split-complementary
#2F2773 #735527 #457327
monochromatic
#0A0818 #1C1845 #2F2773 #4236A1 #5D51C4

Accessibility & contrast

On white

12.66
#2F2773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2773
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2773#FFFFFF#000000##FFFFFF
##2F27731.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#0B3A49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2773;
/* rgb */ color: rgb(47, 39, 115);
/* oklch */ color: oklch(33.2% 0.125 281.9);
Tailwind
colors: {
  custom: {
    50: '#6f619c',
    500: '#2f2773',
    950: '#000000',
  },
}
SCSS
$custom: #2f2773;
$custom-light: #6f619c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2773",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 246.316,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.12542,
    "h": 281.9
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#2F2773
secondary
#9CA550
accent
#D94FCA
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2773

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

Preview Lab → · Contrast checker → · Palette generator →

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