#2F2099#2F2099

#2F2099 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.183 H 277.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2099
RGBrgb(47, 32, 153)
HSLhsl(247, 65%, 36%)
HSVhsv(247, 79%, 60%)
CMYKcmyk(69.3%, 79.1%, 0%, 40%)
CIE-LABlab(23.46, 43.76, -62.82)
CIE-LCHlch(23.46, 76.56, 304.86°)
OKLaboklab(35.95% 0.0238 -0.1815)
OKLCHoklch(35.95% 0.183 277.5)
XYZxyz(7.4367, 3.9366, 30.4987)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2099 #8A9920
analogous
#204E99 #2F2099 #6C2099
triadic
#2F2099 #992F20 #20992F
tetradic
#2F2099 #99204E #8A9920 #20996C
square
#2F2099 #99204E #8A9920 #20996C
split-complementary
#2F2099 #996C20 #4E9920
monochromatic
#100B34 #1F1566 #2F2099 #3F2BCC #6857DC

Accessibility & contrast

On white

11.75
#2F2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2099
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2099#FFFFFF#000000##FFFFFF
##2F20991.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2099;
/* rgb */ color: rgb(47, 32, 153);
/* oklch */ color: oklch(35.9% 0.183 277.5);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#2f2099',
    950: '#000000',
  },
}
SCSS
$custom: #2f2099;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2099",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 247.438,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35949,
    "c": 0.18307,
    "h": 277.5
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#2F2099
secondary
#B3C055
accent
#E83FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F2099

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

Preview Lab → · Contrast checker → · Palette generator →

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