#2F2A75#2F2A75

#2F2A75 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.124 H 280.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2A75
RGBrgb(47, 42, 117)
HSLhsl(244, 47%, 31%)
HSVhsv(244, 64%, 46%)
CMYKcmyk(59.8%, 64.1%, 0%, 54.1%)
CIE-LABlab(22.10, 25.69, -42.49)
CIE-LCHlch(22.10, 49.66, 301.16°)
OKLaboklab(33.91% 0.0225 -0.1221)
OKLCHoklch(33.91% 0.124 280.5)
XYZxyz(5.2101, 3.5443, 17.2357)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A75 #70752A
analogous
#2A4A75 #2F2A75 #542A75
triadic
#2F2A75 #752F2A #2A752F
tetradic
#2F2A75 #752A4A #70752A #2A7554
square
#2F2A75 #752A4A #70752A #2A7554
split-complementary
#2F2A75 #75542A #4A752A
monochromatic
#0B0A1B #1D1A48 #2F2A75 #413AA2 #5E57C3

Accessibility & contrast

On white

12.29
#2F2A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A75
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A75#FFFFFF#000000##FFFFFF
##2F2A751.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#073C4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2a75;
/* rgb */ color: rgb(47, 42, 117);
/* oklch */ color: oklch(33.9% 0.124 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f649d',
    500: '#2f2a75',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a75;
$custom-light: #6f649d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a75",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 244,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33909,
    "c": 0.12414,
    "h": 280.5
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#2F2A75
secondary
#A1A754
accent
#D751CE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2A75

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

Preview Lab → · Contrast checker → · Palette generator →

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