#2F2C98#2F2C98

#2F2C98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.170 H 275.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2C98
RGBrgb(47, 44, 152)
HSLhsl(242, 55%, 38%)
HSVhsv(242, 71%, 60%)
CMYKcmyk(69.1%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.78, 36.63, -58.39)
CIE-LCHlch(25.78, 68.93, 302.10°)
OKLaboklab(37.56% 0.0168 -0.1687)
OKLCHoklch(37.56% 0.17 275.7)
XYZxyz(7.7386, 4.6720, 30.1936)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C98 #95982C
analogous
#2C5F98 #2F2C98 #652C98
triadic
#2F2C98 #982F2C #2C982F
tetradic
#2F2C98 #982C5F #95982C #2C9865
square
#2F2C98 #982C5F #95982C #2C9865
split-complementary
#2F2C98 #98652C #5F982C
monochromatic
#121139 #201E69 #2F2C98 #3F3BC6 #6D6AD4

Accessibility & contrast

On white

10.85
#2F2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2C98
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C98#FFFFFF#000000##FFFFFF
##2F2C981.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2c98;
/* rgb */ color: rgb(47, 44, 152);
/* oklch */ color: oklch(37.6% 0.170 275.7);
Tailwind
colors: {
  custom: {
    50: '#7766b7',
    500: '#2f2c98',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c98;
$custom-light: #7766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c98",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 241.667,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37561,
    "c": 0.16951,
    "h": 275.7
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#2F2C98
secondary
#B8BB65
accent
#DE49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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