#2F2F99#2F2F99

#2F2F99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.167 H 275.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2F2F99
RGBrgb(47, 47, 153)
HSLhsl(240, 53%, 39%)
HSVhsv(240, 69%, 60%)
CMYKcmyk(69.3%, 69.3%, 0%, 40%)
CIE-LABlab(26.55, 35.12, -57.73)
CIE-LCHlch(26.55, 67.57, 301.32°)
OKLaboklab(38.15% 0.0146 -0.1667)
OKLCHoklch(38.15% 0.167 275)
XYZxyz(7.9367, 4.9366, 30.6654)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F99 #99992F
analogous
#2F6499 #2F2F99 #642F99
triadic
#2F2F99 #992F2F #2F992F
tetradic
#2F2F99 #992F64 #99992F #2F9964
square
#2F2F99 #992F64 #99992F #2F9964
split-complementary
#2F2F99 #99642F #64992F
monochromatic
#12123B #21216A #2F2F99 #4141C5 #6F6FD3

Accessibility & contrast

On white

10.57
#2F2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F99
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F99#FFFFFF#000000##FFFFFF
##2F2F991.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2f99;
/* rgb */ color: rgb(47, 47, 153);
/* oklch */ color: oklch(38.1% 0.167 275.0);
Tailwind
colors: {
  custom: {
    50: '#7668b8',
    500: '#2f2f99',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f99;
$custom-light: #7668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f99",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.16739,
    "h": 275
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#2F2F99
secondary
#BABA69
accent
#DC4BDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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