#2F2FB3#2F2FB3

#2F2FB3 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.200 H 273.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB3
RGBrgb(47, 47, 179)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.14, 44.00, -69.18)
CIE-LCHlch(29.14, 81.99, 302.46°)
OKLaboklab(40.78% 0.0106 -0.2002)
OKLCHoklch(40.78% 0.2 273)
XYZxyz(10.3228, 5.8910, 43.2321)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB3 #B3B32F
analogous
#2F71B3 #2F2FB3 #712FB3
triadic
#2F2FB3 #B32F2F #2FB32F
tetradic
#2F2FB3 #B32F71 #B3B32F #2FB371
square
#2F2FB3 #B32F71 #B3B32F #2FB371
split-complementary
#2F2FB3 #B3712F #71B32F
monochromatic
#161652 #222283 #2F2FB3 #4F4FD1 #7F7FDD

Accessibility & contrast

On white

9.64
#2F2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB3
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB3#FFFFFF#000000##FFFFFF
##2F2FB31.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2fb3;
/* rgb */ color: rgb(47, 47, 179);
/* oklch */ color: oklch(40.8% 0.200 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c69cb',
    500: '#2f2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb3;
$custom-light: #7c69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb3",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 240,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.20044,
    "h": 273
  },
  "luminance": 0.05892
}

Semantic roles & 50–950 ramp

primary
#2F2FB3
secondary
#C6C678
accent
#E246E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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