#2F2B7D#2F2B7D

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

Color values

HEX#2F2B7D
RGBrgb(47, 43, 125)
HSLhsl(243, 49%, 33%)
HSVhsv(243, 66%, 49%)
CMYKcmyk(62.4%, 65.6%, 0%, 51%)
CIE-LABlab(23.04, 27.85, -46.06)
CIE-LCHlch(23.04, 53.82, 301.16°)
OKLaboklab(34.81% 0.021 -0.1325)
OKLCHoklch(34.81% 0.134 279)
XYZxyz(5.7367, 3.8123, 19.8316)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B7D #797D2B
analogous
#2B507D #2F2B7D #582B7D
triadic
#2F2B7D #7D2F2B #2B7D2F
tetradic
#2F2B7D #7D2B50 #797D2B #2B7D58
square
#2F2B7D #7D2B50 #797D2B #2B7D58
split-complementary
#2F2B7D #7D582B #507D2B
monochromatic
#0D0C22 #1E1B4F #2F2B7D #403BAB #615CC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2B7D#FFFFFF#000000##FFFFFF
##2F2B7D1.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)
#003A80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2b7d;
/* rgb */ color: rgb(47, 43, 125);
/* oklch */ color: oklch(34.8% 0.134 279.0);
Tailwind
colors: {
  custom: {
    50: '#7164a3',
    500: '#2f2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b7d;
$custom-light: #7164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b7d",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 242.927,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.1342,
    "h": 279
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#2F2B7D
secondary
#A8AD57
accent
#D84FD2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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