#2F298F#2F298F

#2F298F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.161 H 277.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2F298F
RGBrgb(47, 41, 143)
HSLhsl(244, 55%, 36%)
HSVhsv(244, 71%, 56%)
CMYKcmyk(67.1%, 71.3%, 0%, 43.9%)
CIE-LABlab(24.23, 35.37, -55.38)
CIE-LCHlch(24.23, 65.71, 302.57°)
OKLaboklab(36.19% 0.0204 -0.1599)
OKLCHoklch(36.19% 0.161 277.3)
XYZxyz(6.9215, 4.1728, 26.4220)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F298F #898F29
analogous
#29568F #2F298F #62298F
triadic
#2F298F #8F2F29 #298F2F
tetradic
#2F298F #8F2956 #898F29 #298F62
square
#2F298F #8F2956 #898F29 #298F62
split-complementary
#2F298F #8F6229 #568F29
monochromatic
#100E30 #1F1B5F #2F298F #3F37BF #6761D2

Accessibility & contrast

On white

11.45
#2F298F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F298F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F298F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F298F#FFFFFF#000000##FFFFFF
##2F298F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f298f;
/* rgb */ color: rgb(47, 41, 143);
/* oklch */ color: oklch(36.2% 0.161 277.3);
Tailwind
colors: {
  custom: {
    50: '#7564b1',
    500: '#2f298f',
    950: '#000000',
  },
}
SCSS
$custom: #2f298f;
$custom-light: #7564b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f298f",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 243.529,
    "s": 55.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36186,
    "c": 0.16116,
    "h": 277.3
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#2F298F
secondary
#B2B75C
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2F298F

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

Preview Lab → · Contrast checker → · Palette generator →

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