#2F2FB2#2F2FB2

#2F2FB2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.199 H 273.1°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB2
RGBrgb(47, 47, 178)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.03, 43.67, -68.75)
CIE-LCHlch(29.03, 81.45, 302.42°)
OKLaboklab(40.67% 0.0108 -0.1989)
OKLCHoklch(40.67% 0.199 273.1)
XYZxyz(10.2220, 5.8507, 42.7014)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB2 #B2B22F
analogous
#2F71B2 #2F2FB2 #712FB2
triadic
#2F2FB2 #B22F2F #2FB22F
tetradic
#2F2FB2 #B22F71 #B2B22F #2FB271
square
#2F2FB2 #B22F71 #B2B22F #2FB271
split-complementary
#2F2FB2 #B2712F #71B22F
monochromatic
#151551 #222282 #2F2FB2 #4E4ED0 #7E7EDD

Accessibility & contrast

On white

9.68
#2F2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB2
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB2#FFFFFF#000000##FFFFFF
##2F2FB21.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2fb2;
/* rgb */ color: rgb(47, 47, 178);
/* oklch */ color: oklch(40.7% 0.199 273.1);
Tailwind
colors: {
  custom: {
    50: '#7c69ca',
    500: '#2f2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb2;
$custom-light: #7c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb2",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40673,
    "c": 0.19921,
    "h": 273.1
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#2F2FB2
secondary
#C6C677
accent
#E146E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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