#2F2573#2F2573

#2F2573 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.128 H 282.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2573
RGBrgb(47, 37, 115)
HSLhsl(248, 51%, 30%)
HSVhsv(248, 68%, 45%)
CMYKcmyk(59.1%, 67.8%, 0%, 54.9%)
CIE-LABlab(20.69, 28.28, -43.51)
CIE-LCHlch(20.69, 51.89, 303.02°)
OKLaboklab(32.83% 0.0279 -0.1251)
OKLCHoklch(32.83% 0.128 282.6)
XYZxyz(4.9274, 3.1650, 16.5676)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2573 #697325
analogous
#254273 #2F2573 #562573
triadic
#2F2573 #732F25 #25732F
tetradic
#2F2573 #732542 #697325 #257356
square
#2F2573 #732542 #697325 #257356
split-complementary
#2F2573 #735625 #427325
monochromatic
#090717 #1C1645 #2F2573 #4234A1 #5C4DC6

Accessibility & contrast

On white

12.86
#2F2573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F2573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2573
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2573#FFFFFF#000000##FFFFFF
##2F25731.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#0C3948
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2573;
/* rgb */ color: rgb(47, 37, 115);
/* oklch */ color: oklch(32.8% 0.128 282.6);
Tailwind
colors: {
  custom: {
    50: '#6f609c',
    500: '#2f2573',
    950: '#000000',
  },
}
SCSS
$custom: #2f2573;
$custom-light: #6f609c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2573",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 247.692,
    "s": 51.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.12815,
    "h": 282.6
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#2F2573
secondary
#9AA64E
accent
#DB4DC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2573

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

Preview Lab → · Contrast checker → · Palette generator →

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