#2F2B7C#2F2B7C

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

Color values

HEX#2F2B7C
RGBrgb(47, 43, 124)
HSLhsl(243, 49%, 33%)
HSVhsv(243, 65%, 49%)
CMYKcmyk(62.1%, 65.3%, 0%, 51.4%)
CIE-LABlab(22.95, 27.50, -45.57)
CIE-LCHlch(22.95, 53.22, 301.11°)
OKLaboklab(34.72% 0.0211 -0.1311)
OKLCHoklch(34.72% 0.133 279.1)
XYZxyz(5.6731, 3.7869, 19.4969)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B7C #787C2B
analogous
#2B4F7C #2F2B7C #572B7C
triadic
#2F2B7C #7C2F2B #2B7C2F
tetradic
#2F2B7C #7C2B4F #787C2B #2B7C57
square
#2F2B7C #7C2B4F #787C2B #2B7C57
split-complementary
#2F2B7C #7C572B #4F7C2B
monochromatic
#0D0B21 #1E1B4F #2F2B7C #403BA9 #605BC6

Accessibility & contrast

On white

11.95
#2F2B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2B7C
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B7C#FFFFFF#000000##FFFFFF
##2F2B7C1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2b7c;
/* rgb */ color: rgb(47, 43, 124);
/* oklch */ color: oklch(34.7% 0.133 279.1);
Tailwind
colors: {
  custom: {
    50: '#7164a3',
    500: '#2f2b7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b7c;
$custom-light: #7164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b7c",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 242.963,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.13278,
    "h": 279.1
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#2F2B7C
secondary
#A8AC57
accent
#D850D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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