#2F2370#2F2370

#2F2370 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.127 H 283.8°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2F2370
RGBrgb(47, 35, 112)
HSLhsl(249, 52%, 29%)
HSVhsv(249, 69%, 44%)
CMYKcmyk(58%, 68.8%, 0%, 56.1%)
CIE-LABlab(19.95, 28.54, -42.79)
CIE-LCHlch(19.95, 51.44, 303.70°)
OKLaboklab(32.2% 0.0302 -0.123)
OKLCHoklch(32.2% 0.127 283.8)
XYZxyz(4.6971, 2.9760, 15.6530)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2370 #647023
analogous
#233E70 #2F2370 #562370
triadic
#2F2370 #702F23 #23702F
tetradic
#2F2370 #70233E #647023 #237056
square
#2F2370 #70233E #647023 #237056
split-complementary
#2F2370 #705623 #3E7023
monochromatic
#0A0717 #1B1441 #2F2370 #43329F #5B48C6

Accessibility & contrast

On white

13.16
#2F2370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2370
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2370#FFFFFF#000000##FFFFFF
##2F23701.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#113646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2370;
/* rgb */ color: rgb(47, 35, 112);
/* oklch */ color: oklch(32.2% 0.127 283.8);
Tailwind
colors: {
  custom: {
    50: '#6f5f9a',
    500: '#2f2370',
    950: '#000000',
  },
}
SCSS
$custom: #2f2370;
$custom-light: #6f5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2370",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 112
  },
  "hsl": {
    "h": 249.351,
    "s": 52.381,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32203,
    "c": 0.12664,
    "h": 283.8
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#2F2370
secondary
#96A34C
accent
#DC4CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2370

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

Preview Lab → · Contrast checker → · Palette generator →

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