#2F2685#2F2685

#2F2685 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.151 H 279.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2F2685
RGBrgb(47, 38, 133)
HSLhsl(246, 56%, 34%)
HSVhsv(246, 71%, 52%)
CMYKcmyk(64.7%, 71.4%, 0%, 47.8%)
CIE-LABlab(22.60, 33.80, -51.83)
CIE-LCHlch(22.60, 61.87, 303.11°)
OKLaboklab(34.71% 0.0243 -0.1495)
OKLCHoklch(34.71% 0.151 279.2)
XYZxyz(6.0977, 3.6835, 22.5754)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2685 #7C8526
analogous
#264C85 #2F2685 #5E2685
triadic
#2F2685 #852F26 #26852F
tetradic
#2F2685 #85264C #7C8526 #26855E
square
#2F2685 #85264C #7C8526 #26855E
split-complementary
#2F2685 #855E26 #4C8526
monochromatic
#0D0B26 #1E1855 #2F2685 #4034B5 #6257CF

Accessibility & contrast

On white

12.09
#2F2685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2685
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2685#FFFFFF#000000##FFFFFF
##2F26851.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2685;
/* rgb */ color: rgb(47, 38, 133);
/* oklch */ color: oklch(34.7% 0.151 279.2);
Tailwind
colors: {
  custom: {
    50: '#7361a9',
    500: '#2f2685',
    950: '#000000',
  },
}
SCSS
$custom: #2f2685;
$custom-light: #7361a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2685",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 133
  },
  "hsl": {
    "h": 245.684,
    "s": 55.556,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.15145,
    "h": 279.2
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#2F2685
secondary
#AAB353
accent
#DF49D1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2685

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

Preview Lab → · Contrast checker → · Palette generator →

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