#2F2970#2F2970

#2F2970 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.118 H 281.6°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2F2970
RGBrgb(47, 41, 112)
HSLhsl(245, 46%, 30%)
HSVhsv(245, 63%, 44%)
CMYKcmyk(58%, 63.4%, 0%, 56.1%)
CIE-LABlab(21.43, 24.61, -40.38)
CIE-LCHlch(21.43, 47.29, 301.36°)
OKLaboklab(33.28% 0.0239 -0.1159)
OKLCHoklch(33.28% 0.118 281.6)
XYZxyz(4.8890, 3.3598, 15.7170)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2970 #6A7029
analogous
#294770 #2F2970 #522970
triadic
#2F2970 #702F29 #29702F
tetradic
#2F2970 #702947 #6A7029 #297052
square
#2F2970 #702947 #6A7029 #297052
split-complementary
#2F2970 #705229 #477029
monochromatic
#090816 #1C1943 #2F2970 #42399D #5C53C0

Accessibility & contrast

On white

12.56
#2F2970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2970
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2970#FFFFFF#000000##FFFFFF
##2F29701.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#103A48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2970;
/* rgb */ color: rgb(47, 41, 112);
/* oklch */ color: oklch(33.3% 0.118 281.6);
Tailwind
colors: {
  custom: {
    50: '#6e639a',
    500: '#2f2970',
    950: '#000000',
  },
}
SCSS
$custom: #2f2970;
$custom-light: #6e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2970",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 245.07,
    "s": 46.405,
    "l": 30
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.11831,
    "h": 281.6
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#2F2970
secondary
#9BA253
accent
#D652CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2970

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

Preview Lab → · Contrast checker → · Palette generator →

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