#2F2F92#2F2F92

#2F2F92 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.158 H 275.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2F2F92
RGBrgb(47, 47, 146)
HSLhsl(240, 51%, 38%)
HSVhsv(240, 68%, 57%)
CMYKcmyk(67.8%, 67.8%, 0%, 42.7%)
CIE-LABlab(25.90, 32.67, -54.50)
CIE-LCHlch(25.90, 63.55, 300.94°)
OKLaboklab(37.47% 0.0155 -0.1573)
OKLCHoklch(37.47% 0.158 275.6)
XYZxyz(7.3754, 4.7120, 27.7094)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F92 #92922F
analogous
#2F6092 #2F2F92 #602F92
triadic
#2F2F92 #922F2F #2F922F
tetradic
#2F2F92 #922F60 #92922F #2F9260
square
#2F2F92 #922F60 #92922F #2F9260
split-complementary
#2F2F92 #92602F #60922F
monochromatic
#111135 #202064 #2F2F92 #3E3EC0 #6C6CD0

Accessibility & contrast

On white

10.81
#2F2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F92
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F92#FFFFFF#000000##FFFFFF
##2F2F921.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003990
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2f92;
/* rgb */ color: rgb(47, 47, 146);
/* oklch */ color: oklch(37.5% 0.158 275.6);
Tailwind
colors: {
  custom: {
    50: '#7568b3',
    500: '#2f2f92',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f92;
$custom-light: #7568b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f92",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 240,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.15806,
    "h": 275.6
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#2F2F92
secondary
#B7B766
accent
#DB4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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