#2F2098#2F2098

#2F2098 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.182 H 277.6°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2F2098
RGBrgb(47, 32, 152)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 79%, 60%)
CMYKcmyk(69.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.35, 43.45, -62.39)
CIE-LCHlch(23.35, 76.03, 304.85°)
OKLaboklab(35.84% 0.024 -0.1803)
OKLCHoklch(35.84% 0.182 277.6)
XYZxyz(7.3545, 3.9037, 30.0656)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2098 #899820
analogous
#204D98 #2F2098 #6B2098
triadic
#2F2098 #982F20 #20982F
tetradic
#2F2098 #98204D #899820 #20986B
square
#2F2098 #98204D #899820 #20986B
split-complementary
#2F2098 #986B20 #4D9820
monochromatic
#100B33 #1F1565 #2F2098 #3F2BCB #6757DC

Accessibility & contrast

On white

11.79
#2F2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2098
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2098#FFFFFF#000000##FFFFFF
##2F20981.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2098;
/* rgb */ color: rgb(47, 32, 152);
/* oklch */ color: oklch(35.8% 0.182 277.6);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#2f2098',
    950: '#000000',
  },
}
SCSS
$custom: #2f2098;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2098",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 247.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35839,
    "c": 0.18187,
    "h": 277.6
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#2F2098
secondary
#B2BF54
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2098

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

Preview Lab → · Contrast checker → · Palette generator →

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