#2F2A72#2F2A72

#2F2A72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.120 H 280.9°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#2F2A72
RGBrgb(47, 42, 114)
HSLhsl(244, 46%, 31%)
HSVhsv(244, 63%, 45%)
CMYKcmyk(58.8%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.85, 24.64, -40.98)
CIE-LCHlch(21.85, 47.82, 301.02°)
OKLaboklab(33.65% 0.0227 -0.1176)
OKLCHoklch(33.65% 0.12 280.9)
XYZxyz(5.0366, 3.4748, 16.3216)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A72 #6D722A
analogous
#2A4972 #2F2A72 #532A72
triadic
#2F2A72 #722F2A #2A722F
tetradic
#2F2A72 #722A49 #6D722A #2A7253
square
#2F2A72 #722A49 #6D722A #2A7253
split-complementary
#2F2A72 #72532A #49722A
monochromatic
#0A0919 #1D1A45 #2F2A72 #413A9F #5D56C1

Accessibility & contrast

On white

12.39
#2F2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A72
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A72#FFFFFF#000000##FFFFFF
##2F2A721.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#0C3B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2a72;
/* rgb */ color: rgb(47, 42, 114);
/* oklch */ color: oklch(33.6% 0.120 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f649b',
    500: '#2f2a72',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a72;
$custom-light: #6f649b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a72",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 244.167,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.1198,
    "h": 280.9
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#2F2A72
secondary
#9EA454
accent
#D652CD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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