#2F2A77#2F2A77

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

Color values

HEX#2F2A77
RGBrgb(47, 42, 119)
HSLhsl(244, 48%, 32%)
HSVhsv(244, 65%, 47%)
CMYKcmyk(60.5%, 64.7%, 0%, 53.3%)
CIE-LABlab(22.27, 26.40, -43.50)
CIE-LCHlch(22.27, 50.88, 301.25°)
OKLaboklab(34.09% 0.0224 -0.125)
OKLCHoklch(34.09% 0.127 280.2)
XYZxyz(5.3290, 3.5918, 17.8617)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A77 #72772A
analogous
#2A4C77 #2F2A77 #562A77
triadic
#2F2A77 #772F2A #2A772F
tetradic
#2F2A77 #772A4C #72772A #2A7756
square
#2F2A77 #772A4C #72772A #2A7756
split-complementary
#2F2A77 #77562A #4C772A
monochromatic
#0B0A1D #1D1A4A #2F2A77 #413AA4 #5F58C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2A77#FFFFFF#000000##FFFFFF
##2F2A771.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)
#003879
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#033D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2a77;
/* rgb */ color: rgb(47, 42, 119);
/* oklch */ color: oklch(34.1% 0.127 280.2);
Tailwind
colors: {
  custom: {
    50: '#70649f',
    500: '#2f2a77',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a77;
$custom-light: #70649f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a77",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 243.896,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34087,
    "c": 0.12702,
    "h": 280.2
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#2F2A77
secondary
#A3A954
accent
#D750CF
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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