#2F2F72#2F2F72

#2F2F72 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.113 H 278.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2F72
RGBrgb(47, 47, 114)
HSLhsl(240, 42%, 32%)
HSVhsv(240, 59%, 45%)
CMYKcmyk(58.8%, 58.8%, 0%, 55.3%)
CIE-LABlab(23.18, 21.26, -38.83)
CIE-LCHlch(23.18, 44.27, 298.70°)
OKLaboklab(34.63% 0.0172 -0.1113)
OKLCHoklch(34.63% 0.113 278.8)
XYZxyz(5.2251, 3.8519, 16.3845)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F72 #72722F
analogous
#2F5172 #2F2F72 #512F72
triadic
#2F2F72 #722F2F #2F722F
tetradic
#2F2F72 #722F51 #72722F #2F7251
square
#2F2F72 #722F51 #72722F #2F7251
split-complementary
#2F2F72 #72512F #51722F
monochromatic
#0B0B1B #1D1D47 #2F2F72 #41419D #5F5FBD

Accessibility & contrast

On white

11.86
#2F2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F72
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F72#FFFFFF#000000##FFFFFF
##2F2F721.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#0B3F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2f72;
/* rgb */ color: rgb(47, 47, 114);
/* oklch */ color: oklch(34.6% 0.113 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e679b',
    500: '#2f2f72',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f72;
$custom-light: #6e679b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f72",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34625,
    "c": 0.11259,
    "h": 278.8
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#2F2F72
secondary
#A3A35A
accent
#D156D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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