#2F2275#2F2275

#2F2275 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.135 H 283.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2F2275
RGBrgb(47, 34, 117)
HSLhsl(249, 55%, 30%)
HSVhsv(249, 71%, 46%)
CMYKcmyk(59.8%, 70.9%, 0%, 54.1%)
CIE-LABlab(20.17, 30.85, -45.64)
CIE-LCHlch(20.17, 55.09, 304.06°)
OKLaboklab(32.51% 0.0305 -0.1313)
OKLCHoklch(32.51% 0.135 283.1)
XYZxyz(4.9542, 3.0324, 17.1504)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2275 #687522
analogous
#223E75 #2F2275 #592275
triadic
#2F2275 #752F22 #22752F
tetradic
#2F2275 #75223E #687522 #227559
square
#2F2275 #75223E #687522 #227559
split-complementary
#2F2275 #755922 #3E7522
monochromatic
#0A0718 #1C1446 #2F2275 #4230A4 #5C48CA

Accessibility & contrast

On white

13.07
#2F2275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F2275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2275
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2275#FFFFFF#000000##FFFFFF
##2F22751.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#093848
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2275;
/* rgb */ color: rgb(47, 34, 117);
/* oklch */ color: oklch(32.5% 0.135 283.1);
Tailwind
colors: {
  custom: {
    50: '#705e9e',
    500: '#2f2275',
    950: '#000000',
  },
}
SCSS
$custom: #2f2275;
$custom-light: #705e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2275",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 249.398,
    "s": 54.967,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32507,
    "c": 0.13484,
    "h": 283.1
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#2F2275
secondary
#99A84B
accent
#DE49C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2275

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

Preview Lab → · Contrast checker → · Palette generator →

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