#2F2277#2F2277

#2F2277 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.138 H 282.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2F2277
RGBrgb(47, 34, 119)
HSLhsl(249, 56%, 30%)
HSVhsv(249, 71%, 47%)
CMYKcmyk(60.5%, 71.4%, 0%, 53.3%)
CIE-LABlab(20.36, 31.53, -46.62)
CIE-LCHlch(20.36, 56.28, 304.07°)
OKLaboklab(32.7% 0.0301 -0.1342)
OKLCHoklch(32.7% 0.138 282.7)
XYZxyz(5.0731, 3.0800, 17.7764)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2277 #6A7722
analogous
#224077 #2F2277 #592277
triadic
#2F2277 #772F22 #22772F
tetradic
#2F2277 #772240 #6A7722 #227759
square
#2F2277 #772240 #6A7722 #227759
split-complementary
#2F2277 #775922 #407722
monochromatic
#090718 #1C1447 #2F2277 #4230A7 #5C49CB

Accessibility & contrast

On white

13.00
#2F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2277
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2277#FFFFFF#000000##FFFFFF
##2F22771.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#053849
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2277;
/* rgb */ color: rgb(47, 34, 119);
/* oklch */ color: oklch(32.7% 0.138 282.7);
Tailwind
colors: {
  custom: {
    50: '#705e9f',
    500: '#2f2277',
    950: '#000000',
  },
}
SCSS
$custom: #2f2277;
$custom-light: #705e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2277",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 249.176,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.327,
    "c": 0.13754,
    "h": 282.7
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2277

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

Preview Lab → · Contrast checker → · Palette generator →

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