#2F2B74#2F2B74

#2F2B74 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.121 H 280.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2B74
RGBrgb(47, 43, 116)
HSLhsl(243, 46%, 31%)
HSVhsv(243, 63%, 45%)
CMYKcmyk(59.5%, 62.9%, 0%, 54.5%)
CIE-LABlab(22.28, 24.68, -41.57)
CIE-LCHlch(22.28, 48.35, 300.69°)
OKLaboklab(34.01% 0.0215 -0.1194)
OKLCHoklch(34.01% 0.121 280.2)
XYZxyz(5.1876, 3.5927, 16.9397)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B74 #70742B
analogous
#2B4B74 #2F2B74 #532B74
triadic
#2F2B74 #742F2B #2B742F
tetradic
#2F2B74 #742B4B #70742B #2B7453
square
#2F2B74 #742B4B #70742B #2B7453
split-complementary
#2F2B74 #74532B #4B742B
monochromatic
#0B0A1B #1D1A47 #2F2B74 #413CA1 #5E58C1

Accessibility & contrast

On white

12.22
#2F2B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B74
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B74#FFFFFF#000000##FFFFFF
##2F2B741.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#093D4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2b74;
/* rgb */ color: rgb(47, 43, 116);
/* oklch */ color: oklch(34.0% 0.121 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f649d',
    500: '#2f2b74',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b74;
$custom-light: #6f649d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b74",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 116
  },
  "hsl": {
    "h": 243.288,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3401,
    "c": 0.1213,
    "h": 280.2
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#2F2B74
secondary
#A1A655
accent
#D652CE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2F2B74

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

Preview Lab → · Contrast checker → · Palette generator →

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