#2F2374#2F2374

#2F2374 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.132 H 283.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2374
RGBrgb(47, 35, 116)
HSLhsl(249, 54%, 30%)
HSVhsv(249, 70%, 45%)
CMYKcmyk(59.5%, 69.8%, 0%, 54.5%)
CIE-LABlab(20.31, 29.89, -44.78)
CIE-LCHlch(20.31, 53.84, 303.73°)
OKLaboklab(32.58% 0.0297 -0.1288)
OKLCHoklch(32.58% 0.132 283)
XYZxyz(4.9247, 3.0670, 16.8521)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2374 #687423
analogous
#234074 #2F2374 #582374
triadic
#2F2374 #742F23 #23742F
tetradic
#2F2374 #742340 #687423 #237458
square
#2F2374 #742340 #687423 #237458
split-complementary
#2F2374 #745823 #407423
monochromatic
#0A0718 #1C1545 #2F2374 #4231A3 #5C49C8

Accessibility & contrast

On white

13.02
#2F2374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F2374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2374
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2374#FFFFFF#000000##FFFFFF
##2F23741.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#0A3848
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2374;
/* rgb */ color: rgb(47, 35, 116);
/* oklch */ color: oklch(32.6% 0.132 283.0);
Tailwind
colors: {
  custom: {
    50: '#705f9d',
    500: '#2f2374',
    950: '#000000',
  },
}
SCSS
$custom: #2f2374;
$custom-light: #705f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2374",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 248.889,
    "s": 53.642,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32578,
    "c": 0.13219,
    "h": 283
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#2F2374
secondary
#99A74C
accent
#DD4BC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2374

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

Preview Lab → · Contrast checker → · Palette generator →

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