#2F2A97#2F2A97

#2F2A97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.170 H 276.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2F2A97
RGBrgb(47, 42, 151)
HSLhsl(243, 56%, 38%)
HSVhsv(243, 72%, 59%)
CMYKcmyk(68.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.24, 37.49, -58.66)
CIE-LCHlch(25.24, 69.62, 302.59°)
OKLaboklab(37.15% 0.0183 -0.1695)
OKLCHoklch(37.15% 0.17 276.2)
XYZxyz(7.5843, 4.4940, 29.7399)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A97 #92972A
analogous
#2A5C97 #2F2A97 #652A97
triadic
#2F2A97 #972F2A #2A972F
tetradic
#2F2A97 #972A5C #92972A #2A9765
square
#2F2A97 #972A5C #92972A #2A9765
split-complementary
#2F2A97 #97652A #5C972A
monochromatic
#110F37 #201D67 #2F2A97 #3E37C7 #6C67D5

Accessibility & contrast

On white

11.06
#2F2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A97
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A97#FFFFFF#000000##FFFFFF
##2F2A971.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2a97;
/* rgb */ color: rgb(47, 42, 151);
/* oklch */ color: oklch(37.1% 0.170 276.2);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2f2a97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a97;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a97",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 242.752,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.17045,
    "h": 276.2
  },
  "luminance": 0.04495
}

Semantic roles & 50–950 ramp

primary
#2F2A97
secondary
#B7BB62
accent
#E048D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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