#2F2C97#2F2C97

#2F2C97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.168 H 275.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2F2C97
RGBrgb(47, 44, 151)
HSLhsl(242, 55%, 38%)
HSVhsv(242, 71%, 59%)
CMYKcmyk(68.9%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.68, 36.28, -57.93)
CIE-LCHlch(25.68, 68.36, 302.06°)
OKLaboklab(37.46% 0.017 -0.1673)
OKLCHoklch(37.46% 0.168 275.8)
XYZxyz(7.6571, 4.6394, 29.7641)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C97 #94972C
analogous
#2C5E97 #2F2C97 #642C97
triadic
#2F2C97 #972F2C #2C972F
tetradic
#2F2C97 #972C5E #94972C #2C9764
square
#2F2C97 #972C5E #94972C #2C9764
split-complementary
#2F2C97 #97642C #5E972C
monochromatic
#111038 #201E68 #2F2C97 #3E3AC6 #6D6AD4

Accessibility & contrast

On white

10.89
#2F2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2C97
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C97#FFFFFF#000000##FFFFFF
##2F2C971.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2c97;
/* rgb */ color: rgb(47, 44, 151);
/* oklch */ color: oklch(37.5% 0.168 275.8);
Tailwind
colors: {
  custom: {
    50: '#7666b7',
    500: '#2f2c97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c97;
$custom-light: #7666b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c97",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 241.682,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37461,
    "c": 0.16821,
    "h": 275.8
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#2F2C97
secondary
#B8BA65
accent
#DE4ADA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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