#2F2998#2F2998

#2F2998 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.173 H 276.2°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2F2998
RGBrgb(47, 41, 152)
HSLhsl(243, 58%, 38%)
HSVhsv(243, 73%, 60%)
CMYKcmyk(69.1%, 73%, 0%, 40.4%)
CIE-LABlab(25.13, 38.43, -59.46)
CIE-LCHlch(25.13, 70.80, 302.87°)
OKLaboklab(37.09% 0.0188 -0.1718)
OKLCHoklch(37.09% 0.173 276.2)
XYZxyz(7.6309, 4.4565, 30.1577)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2998 #929829
analogous
#295B98 #2F2998 #662998
triadic
#2F2998 #982F29 #29982F
tetradic
#2F2998 #98295B #929829 #299866
square
#2F2998 #98295B #929829 #299866
split-complementary
#2F2998 #986629 #5B9829
monochromatic
#110F38 #201C68 #2F2998 #3E36C8 #6C66D6

Accessibility & contrast

On white

11.10
#2F2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F2998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2998
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2998#FFFFFF#000000##FFFFFF
##2F29981.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2998;
/* rgb */ color: rgb(47, 41, 152);
/* oklch */ color: oklch(37.1% 0.173 276.2);
Tailwind
colors: {
  custom: {
    50: '#7764b7',
    500: '#2f2998',
    950: '#000000',
  },
}
SCSS
$custom: #2f2998;
$custom-light: #7764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2998",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 243.243,
    "s": 57.513,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.17283,
    "h": 276.2
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#2F2998
secondary
#B7BC61
accent
#E147D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2998

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

Preview Lab → · Contrast checker → · Palette generator →

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