#2F2FB1#2F2FB1

#2F2FB1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.198 H 273.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB1
RGBrgb(47, 47, 177)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(73.4%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.93, 43.34, -68.32)
CIE-LCHlch(28.93, 80.91, 302.39°)
OKLaboklab(40.57% 0.011 -0.1977)
OKLCHoklch(40.57% 0.198 273.2)
XYZxyz(10.1220, 5.8107, 42.1746)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB1 #B1B12F
analogous
#2F70B1 #2F2FB1 #702FB1
triadic
#2F2FB1 #B12F2F #2FB12F
tetradic
#2F2FB1 #B12F70 #B1B12F #2FB170
square
#2F2FB1 #B12F70 #B1B12F #2FB170
split-complementary
#2F2FB1 #B1702F #70B12F
monochromatic
#151550 #222281 #2F2FB1 #4D4DD0 #7E7EDD

Accessibility & contrast

On white

9.71
#2F2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB1
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB1#FFFFFF#000000##FFFFFF
##2F2FB11.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2fb1;
/* rgb */ color: rgb(47, 47, 177);
/* oklch */ color: oklch(40.6% 0.198 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c69ca',
    500: '#2f2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb1;
$custom-light: #7c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb1",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 240,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40569,
    "c": 0.19797,
    "h": 273.2
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#2F2FB1
secondary
#C5C576
accent
#E147E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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