#2F2278#2F2278

#2F2278 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.139 H 282.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2F2278
RGBrgb(47, 34, 120)
HSLhsl(249, 56%, 30%)
HSVhsv(249, 72%, 47%)
CMYKcmyk(60.8%, 71.7%, 0%, 52.9%)
CIE-LABlab(20.46, 31.86, -47.10)
CIE-LCHlch(20.46, 56.87, 304.07°)
OKLaboklab(32.8% 0.03 -0.1356)
OKLCHoklch(32.8% 0.139 282.5)
XYZxyz(5.1334, 3.1041, 18.0943)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2278 #6B7822
analogous
#224078 #2F2278 #5A2278
triadic
#2F2278 #782F22 #22782F
tetradic
#2F2278 #782240 #6B7822 #22785A
square
#2F2278 #782240 #6B7822 #22785A
split-complementary
#2F2278 #785A22 #407822
monochromatic
#0A0719 #1C1448 #2F2278 #4230A8 #5D49CB

Accessibility & contrast

On white

12.96
#2F2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2278
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2278#FFFFFF#000000##FFFFFF
##2F22781.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#03394A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2278;
/* rgb */ color: rgb(47, 34, 120);
/* oklch */ color: oklch(32.8% 0.139 282.5);
Tailwind
colors: {
  custom: {
    50: '#715ea0',
    500: '#2f2278',
    950: '#000000',
  },
}
SCSS
$custom: #2f2278;
$custom-light: #715ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2278",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 249.07,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.1389,
    "h": 282.5
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#2F2278
secondary
#9CAB4B
accent
#DF49C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F2278

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

Preview Lab → · Contrast checker → · Palette generator →

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