#2F2A66#2F2A66

#2F2A66 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.102 H 282.9°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F2A66
RGBrgb(47, 42, 102)
HSLhsl(245, 42%, 28%)
HSVhsv(245, 59%, 40%)
CMYKcmyk(53.9%, 58.8%, 0%, 60%)
CIE-LABlab(20.90, 20.44, -34.75)
CIE-LCHlch(20.90, 40.32, 300.47°)
OKLaboklab(32.64% 0.0228 -0.0993)
OKLCHoklch(32.64% 0.102 282.9)
XYZxyz(4.3978, 3.2193, 12.9575)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A66 #61662A
analogous
#2A4366 #2F2A66 #4D2A66
triadic
#2F2A66 #662F2A #2A662F
tetradic
#2F2A66 #662A43 #61662A #2A664D
square
#2F2A66 #662A43 #61662A #2A664D
split-complementary
#2F2A66 #664D2A #43662A
monochromatic
#0A0916 #1B183B #2F2A66 #433C91 #5B52B8

Accessibility & contrast

On white

12.77
#2F2A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F2A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A66
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A66#FFFFFF#000000##FFFFFF
##2F2A661.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053468
Deuteranopia (green-blind)
#003065
Tritanopia (blue-blind)
#1A3843
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2a66;
/* rgb */ color: rgb(47, 42, 102);
/* oklch */ color: oklch(32.6% 0.102 282.9);
Tailwind
colors: {
  custom: {
    50: '#6c6392',
    500: '#2f2a66',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a66;
$custom-light: #6c6392;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a66",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 102
  },
  "hsl": {
    "h": 245,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32643,
    "c": 0.1019,
    "h": 282.9
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#2F2A66
secondary
#939854
accent
#D156C7
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2F2A66

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

Preview Lab → · Contrast checker → · Palette generator →

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