#2F2875#2F2875

#2F2875 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.127 H 281.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2875
RGBrgb(47, 40, 117)
HSLhsl(245, 49%, 31%)
HSVhsv(245, 66%, 46%)
CMYKcmyk(59.8%, 65.8%, 0%, 54.1%)
CIE-LABlab(21.60, 27.02, -43.31)
CIE-LCHlch(21.60, 51.05, 301.96°)
OKLaboklab(33.54% 0.0246 -0.1245)
OKLCHoklch(33.54% 0.127 281.2)
XYZxyz(5.1410, 3.4059, 17.2127)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2875 #6E7528
analogous
#284775 #2F2875 #552875
triadic
#2F2875 #752F28 #28752F
tetradic
#2F2875 #752847 #6E7528 #287555
square
#2F2875 #752847 #6E7528 #287555
split-complementary
#2F2875 #755528 #477528
monochromatic
#0A091A #1D1847 #2F2875 #4138A3 #5D53C4

Accessibility & contrast

On white

12.49
#2F2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2875
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2875#FFFFFF#000000##FFFFFF
##2F28751.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#073B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2875;
/* rgb */ color: rgb(47, 40, 117);
/* oklch */ color: oklch(33.5% 0.127 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f629d',
    500: '#2f2875',
    950: '#000000',
  },
}
SCSS
$custom: #2f2875;
$custom-light: #6f629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2875",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 245.455,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33542,
    "c": 0.1269,
    "h": 281.2
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#2F2875
secondary
#9FA752
accent
#D94FCC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2875

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

Preview Lab → · Contrast checker → · Palette generator →

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