#2F2679#2F2679

#2F2679 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.135 H 281.1°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2F2679
RGBrgb(47, 38, 121)
HSLhsl(247, 52%, 31%)
HSVhsv(247, 69%, 47%)
CMYKcmyk(61.2%, 68.6%, 0%, 52.5%)
CIE-LABlab(21.47, 29.69, -46.08)
CIE-LCHlch(21.47, 54.82, 302.80°)
OKLaboklab(33.56% 0.0261 -0.1326)
OKLCHoklch(33.56% 0.135 281.1)
XYZxyz(5.3155, 3.3707, 18.4560)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2679 #707926
analogous
#264679 #2F2679 #582679
triadic
#2F2679 #792F26 #26792F
tetradic
#2F2679 #792646 #707926 #267958
square
#2F2679 #792646 #707926 #267958
split-complementary
#2F2679 #795826 #467926
monochromatic
#0B091C #1D174A #2F2679 #4135A8 #5E51C8

Accessibility & contrast

On white

12.54
#2F2679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2679
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2679#FFFFFF#000000##FFFFFF
##2F26791.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2679;
/* rgb */ color: rgb(47, 38, 121);
/* oklch */ color: oklch(33.6% 0.135 281.1);
Tailwind
colors: {
  custom: {
    50: '#7061a0',
    500: '#2f2679',
    950: '#000000',
  },
}
SCSS
$custom: #2f2679;
$custom-light: #7061a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2679",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 246.506,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33558,
    "c": 0.13518,
    "h": 281.1
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#2F2679
secondary
#A1AB50
accent
#DC4CCC
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F2679

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

Preview Lab → · Contrast checker → · Palette generator →

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