#2F2D77#2F2D77

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

Color values

HEX#2F2D77
RGBrgb(47, 45, 119)
HSLhsl(242, 45%, 32%)
HSVhsv(242, 62%, 47%)
CMYKcmyk(60.5%, 62.2%, 0%, 53.3%)
CIE-LABlab(23.04, 24.40, -42.25)
CIE-LCHlch(23.04, 48.78, 300.01°)
OKLaboklab(34.65% 0.0193 -0.1213)
OKLCHoklch(34.65% 0.123 279)
XYZxyz(5.4394, 3.8126, 17.8985)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D77 #75772D
analogous
#2D5077 #2F2D77 #542D77
triadic
#2F2D77 #772F2D #2D772F
tetradic
#2F2D77 #772D50 #75772D #2D7754
square
#2F2D77 #772D50 #75772D #2D7754
split-complementary
#2F2D77 #77542D #50772D
monochromatic
#0C0B1E #1D1C4B #2F2D77 #413EA3 #5F5DC2

Accessibility & contrast

On white

11.91
#2F2D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D77
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D77#FFFFFF#000000##FFFFFF
##2F2D771.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#023F4D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2d77;
/* rgb */ color: rgb(47, 45, 119);
/* oklch */ color: oklch(34.7% 0.123 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f669f',
    500: '#2f2d77',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d77;
$custom-light: #6f669f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d77",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 241.622,
    "s": 45.122,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34652,
    "c": 0.12286,
    "h": 279
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#2F2D77
secondary
#A6A858
accent
#D553D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2D77

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

Preview Lab → · Contrast checker → · Palette generator →

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