#2F2B80#2F2B80

#2F2B80 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.138 H 278.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2B80
RGBrgb(47, 43, 128)
HSLhsl(243, 50%, 34%)
HSVhsv(243, 66%, 50%)
CMYKcmyk(63.3%, 66.4%, 0%, 49.8%)
CIE-LABlab(23.31, 28.90, -47.52)
CIE-LCHlch(23.31, 55.62, 301.31°)
OKLaboklab(35.08% 0.0207 -0.1368)
OKLCHoklch(35.08% 0.138 278.6)
XYZxyz(5.9312, 3.8902, 20.8562)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B80 #7C802B
analogous
#2B5180 #2F2B80 #592B80
triadic
#2F2B80 #802F2B #2B802F
tetradic
#2F2B80 #802B51 #7C802B #2B8059
square
#2F2B80 #802B51 #7C802B #2B8059
split-complementary
#2F2B80 #80592B #51802B
monochromatic
#0D0C24 #1E1C52 #2F2B80 #403AAE #625DC9

Accessibility & contrast

On white

11.81
#2F2B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B80
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B80#FFFFFF#000000##FFFFFF
##2F2B801.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2b80;
/* rgb */ color: rgb(47, 43, 128);
/* oklch */ color: oklch(35.1% 0.138 278.6);
Tailwind
colors: {
  custom: {
    50: '#7165a6',
    500: '#2f2b80',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b80;
$custom-light: #7165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b80",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 242.824,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35084,
    "c": 0.13841,
    "h": 278.6
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#2F2B80
secondary
#AAAE58
accent
#D94FD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2B80

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

Preview Lab → · Contrast checker → · Palette generator →

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