#2F2676#2F2676

#2F2676 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.131 H 281.7°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2676
RGBrgb(47, 38, 118)
HSLhsl(247, 51%, 31%)
HSVhsv(247, 68%, 46%)
CMYKcmyk(60.2%, 67.8%, 0%, 53.7%)
CIE-LABlab(21.20, 28.66, -44.61)
CIE-LCHlch(21.20, 53.02, 302.72°)
OKLaboklab(33.28% 0.0265 -0.1283)
OKLCHoklch(33.28% 0.131 281.7)
XYZxyz(5.1344, 3.2982, 17.5021)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2676 #6D7626
analogous
#264576 #2F2676 #572676
triadic
#2F2676 #762F26 #26762F
tetradic
#2F2676 #762645 #6D7626 #267657
square
#2F2676 #762645 #6D7626 #267657
split-complementary
#2F2676 #765726 #457626
monochromatic
#0A0819 #1D1748 #2F2676 #4135A4 #5D50C7

Accessibility & contrast

On white

12.65
#2F2676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2676
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2676#FFFFFF#000000##FFFFFF
##2F26761.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#063A4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2676;
/* rgb */ color: rgb(47, 38, 118);
/* oklch */ color: oklch(33.3% 0.131 281.7);
Tailwind
colors: {
  custom: {
    50: '#70619e',
    500: '#2f2676',
    950: '#000000',
  },
}
SCSS
$custom: #2f2676;
$custom-light: #70619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2676",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 118
  },
  "hsl": {
    "h": 246.75,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33278,
    "c": 0.13101,
    "h": 281.7
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#2F2676
secondary
#9EA84F
accent
#DB4DCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2676

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

Preview Lab → · Contrast checker → · Palette generator →

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