#2F2B99#2F2B99

#2F2B99 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.172 H 275.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2F2B99
RGBrgb(47, 43, 153)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(69.3%, 71.9%, 0%, 40%)
CIE-LABlab(25.66, 37.57, -59.20)
CIE-LCHlch(25.66, 70.12, 302.40°)
OKLaboklab(37.5% 0.0173 -0.171)
OKLCHoklch(37.5% 0.172 275.8)
XYZxyz(7.7840, 4.6313, 30.6145)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B99 #95992B
analogous
#2B5E99 #2F2B99 #662B99
triadic
#2F2B99 #992F2B #2B992F
tetradic
#2F2B99 #992B5E #95992B #2B9966
square
#2F2B99 #992B5E #95992B #2B9966
split-complementary
#2F2B99 #99662B #5E992B
monochromatic
#121039 #201E69 #2F2B99 #3F3AC8 #6D69D5

Accessibility & contrast

On white

10.90
#2F2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B99
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B99#FFFFFF#000000##FFFFFF
##2F2B991.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2b99;
/* rgb */ color: rgb(47, 43, 153);
/* oklch */ color: oklch(37.5% 0.172 275.8);
Tailwind
colors: {
  custom: {
    50: '#7765b8',
    500: '#2f2b99',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b99;
$custom-light: #7765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b99",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 242.182,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37503,
    "c": 0.17193,
    "h": 275.8
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#2F2B99
secondary
#B8BC64
accent
#DF48DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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