#2F2FB0#2F2FB0

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

Color values

HEX#2F2FB0
RGBrgb(47, 47, 176)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(73.3%, 73.3%, 0%, 31%)
CIE-LABlab(28.83, 43.00, -67.90)
CIE-LCHlch(28.83, 80.37, 302.35°)
OKLaboklab(40.47% 0.0111 -0.1964)
OKLCHoklch(40.47% 0.197 273.2)
XYZxyz(10.0227, 5.7709, 41.6516)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB0 #B0B02F
analogous
#2F6FB0 #2F2FB0 #6F2FB0
triadic
#2F2FB0 #B02F2F #2FB02F
tetradic
#2F2FB0 #B02F6F #B0B02F #2FB06F
square
#2F2FB0 #B02F6F #B0B02F #2FB06F
split-complementary
#2F2FB0 #B06F2F #6FB02F
monochromatic
#15154F #222280 #2F2FB0 #4D4DCF #7D7DDC

Accessibility & contrast

On white

9.75
#2F2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB0
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB0#FFFFFF#000000##FFFFFF
##2F2FB01.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2fb0;
/* rgb */ color: rgb(47, 47, 176);
/* oklch */ color: oklch(40.5% 0.197 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c69c9',
    500: '#2f2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb0;
$custom-light: #7c69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb0",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 240,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40465,
    "c": 0.19675,
    "h": 273.2
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#2F2FB0
secondary
#C5C576
accent
#E147E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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