#2F2A63#2F2A63

#2F2A63 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.097 H 283.5°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2F2A63
RGBrgb(47, 42, 99)
HSLhsl(245, 40%, 28%)
HSVhsv(245, 58%, 39%)
CMYKcmyk(52.5%, 57.6%, 0%, 61.2%)
CIE-LABlab(20.68, 19.40, -33.15)
CIE-LCHlch(20.68, 38.41, 300.34°)
OKLaboklab(32.4% 0.0227 -0.0946)
OKLCHoklch(32.4% 0.097 283.5)
XYZxyz(4.2517, 3.1609, 12.1880)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A63 #5E632A
analogous
#2A4163 #2F2A63 #4B2A63
triadic
#2F2A63 #632F2A #2A632F
tetradic
#2F2A63 #632A41 #5E632A #2A634B
square
#2F2A63 #632A41 #5E632A #2A634B
split-complementary
#2F2A63 #634B2A #41632A
monochromatic
#0A0915 #1B1838 #2F2A63 #433C8E #5B52B6

Accessibility & contrast

On white

12.87
#2F2A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F2A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A63
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A63#FFFFFF#000000##FFFFFF
##2F2A631.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3465
Deuteranopia (green-blind)
#063062
Tritanopia (blue-blind)
#1C3742
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2a63;
/* rgb */ color: rgb(47, 42, 99);
/* oklch */ color: oklch(32.4% 0.097 283.5);
Tailwind
colors: {
  custom: {
    50: '#6c6390',
    500: '#2f2a63',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a63;
$custom-light: #6c6390;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a63",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 99
  },
  "hsl": {
    "h": 245.263,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32404,
    "c": 0.09729,
    "h": 283.5
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#2F2A63
secondary
#909553
accent
#D058C6
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F2A63

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

Preview Lab → · Contrast checker → · Palette generator →

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