#2F2A7E#2F2A7E

#2F2A7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.137 H 279.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F2A7E
RGBrgb(47, 42, 126)
HSLhsl(244, 50%, 33%)
HSVhsv(244, 67%, 49%)
CMYKcmyk(62.7%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.88, 28.85, -46.95)
CIE-LCHlch(22.88, 55.11, 301.57°)
OKLaboklab(34.72% 0.0218 -0.1352)
OKLCHoklch(34.72% 0.137 279.2)
XYZxyz(5.7650, 3.7662, 20.1578)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A7E #797E2A
analogous
#2A4F7E #2F2A7E #592A7E
triadic
#2F2A7E #7E2F2A #2A7E2F
tetradic
#2F2A7E #7E2A4F #797E2A #2A7E59
square
#2F2A7E #7E2A4F #797E2A #2A7E59
split-complementary
#2F2A7E #7E592A #4F7E2A
monochromatic
#0D0B22 #1E1B50 #2F2A7E #4039AC #615AC8

Accessibility & contrast

On white

11.98
#2F2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A7E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A7E#FFFFFF#000000##FFFFFF
##2F2A7E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2a7e;
/* rgb */ color: rgb(47, 42, 126);
/* oklch */ color: oklch(34.7% 0.137 279.2);
Tailwind
colors: {
  custom: {
    50: '#7164a4',
    500: '#2f2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a7e;
$custom-light: #7164a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a7e",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 243.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34722,
    "c": 0.13692,
    "h": 279.2
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#2F2A7E
secondary
#A8AE56
accent
#DA4ED1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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