#2F2675#2F2675

#2F2675 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.130 H 281.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2675
RGBrgb(47, 38, 117)
HSLhsl(247, 51%, 30%)
HSVhsv(247, 68%, 46%)
CMYKcmyk(59.8%, 67.5%, 0%, 54.1%)
CIE-LABlab(21.11, 28.32, -44.11)
CIE-LCHlch(21.11, 52.42, 302.70°)
OKLaboklab(33.18% 0.0266 -0.1268)
OKLCHoklch(33.18% 0.13 281.9)
XYZxyz(5.0753, 3.2746, 17.1908)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2675 #6C7526
analogous
#264575 #2F2675 #562675
triadic
#2F2675 #752F26 #26752F
tetradic
#2F2675 #752645 #6C7526 #267556
square
#2F2675 #752645 #6C7526 #267556
split-complementary
#2F2675 #755626 #457526
monochromatic
#0A0819 #1C1747 #2F2675 #4235A3 #5D4FC6

Accessibility & contrast

On white

12.69
#2F2675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2675
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2675#FFFFFF#000000##FFFFFF
##2F26751.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#083A4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2675;
/* rgb */ color: rgb(47, 38, 117);
/* oklch */ color: oklch(33.2% 0.130 281.9);
Tailwind
colors: {
  custom: {
    50: '#70619d',
    500: '#2f2675',
    950: '#000000',
  },
}
SCSS
$custom: #2f2675;
$custom-light: #70619d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2675",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 117
  },
  "hsl": {
    "h": 246.835,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33185,
    "c": 0.12961,
    "h": 281.9
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#2F2675
secondary
#9DA74F
accent
#DA4DCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2675

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

Preview Lab → · Contrast checker → · Palette generator →

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