#2F2F70#2F2F70

#2F2F70 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.110 H 279.0°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2F2F70
RGBrgb(47, 47, 112)
HSLhsl(240, 41%, 31%)
HSVhsv(240, 58%, 44%)
CMYKcmyk(58%, 58%, 0%, 56.1%)
CIE-LABlab(23.02, 20.54, -37.80)
CIE-LCHlch(23.02, 43.02, 298.52°)
OKLaboklab(34.46% 0.0171 -0.1082)
OKLCHoklch(34.46% 0.11 279)
XYZxyz(5.1125, 3.8069, 15.7915)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F70 #70702F
analogous
#2F4F70 #2F2F70 #4F2F70
triadic
#2F2F70 #702F2F #2F702F
tetradic
#2F2F70 #702F4F #70702F #2F704F
square
#2F2F70 #702F4F #70702F #2F704F
split-complementary
#2F2F70 #704F2F #4F702F
monochromatic
#0B0B1A #1D1D45 #2F2F70 #41419B #5E5EBB

Accessibility & contrast

On white

11.92
#2F2F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F70
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F70#FFFFFF#000000##FFFFFF
##2F2F701.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A72
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#0E3E4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2f70;
/* rgb */ color: rgb(47, 47, 112);
/* oklch */ color: oklch(34.5% 0.110 279.0);
Tailwind
colors: {
  custom: {
    50: '#6e679a',
    500: '#2f2f70',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f70;
$custom-light: #6e679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f70",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 40.881,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.10958,
    "h": 279
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#2F2F70
secondary
#A1A15A
accent
#D157D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2F70

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

Preview Lab → · Contrast checker → · Palette generator →

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