#2F2FB8#2F2FB8

#2F2FB8 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.207 H 272.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB8
RGBrgb(47, 47, 184)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 72%)
CMYKcmyk(74.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.66, 45.67, -71.29)
CIE-LCHlch(29.66, 84.66, 302.64°)
OKLaboklab(41.3% 0.0097 -0.2063)
OKLCHoklch(41.3% 0.207 272.7)
XYZxyz(10.8376, 6.0969, 45.9438)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB8 #B8B82F
analogous
#2F73B8 #2F2FB8 #732FB8
triadic
#2F2FB8 #B82F2F #2FB82F
tetradic
#2F2FB8 #B82F73 #B8B82F #2FB873
square
#2F2FB8 #B82F73 #B8B82F #2FB873
split-complementary
#2F2FB8 #B8732F #73B82F
monochromatic
#161657 #232387 #2F2FB8 #5252D3 #8282DF

Accessibility & contrast

On white

9.46
#2F2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB8
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB8#FFFFFF#000000##FFFFFF
##2F2FB81.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f2fb8;
/* rgb */ color: rgb(47, 47, 184);
/* oklch */ color: oklch(41.3% 0.207 272.7);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#2f2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb8;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb8",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 240,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41301,
    "c": 0.20654,
    "h": 272.7
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#2F2FB8
secondary
#C8C87B
accent
#E245E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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