#2F2C9B#2F2C9B

#2F2C9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.173 H 275.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2F2C9B
RGBrgb(47, 44, 155)
HSLhsl(242, 56%, 39%)
HSVhsv(242, 72%, 61%)
CMYKcmyk(69.7%, 71.6%, 0%, 39.2%)
CIE-LABlab(26.07, 37.66, -59.74)
CIE-LCHlch(26.07, 70.62, 302.22°)
OKLaboklab(37.86% 0.0164 -0.1726)
OKLCHoklch(37.86% 0.173 275.4)
XYZxyz(7.9874, 4.7715, 31.5041)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C9B #989B2C
analogous
#2C619B #2F2C9B #672C9B
triadic
#2F2C9B #9B2F2C #2C9B2F
tetradic
#2F2C9B #9B2C61 #989B2C #2C9B67
square
#2F2C9B #9B2C61 #989B2C #2C9B67
split-complementary
#2F2C9B #9B672C #619B2C
monochromatic
#12113C #211E6B #2F2C9B #403CC8 #6F6CD5

Accessibility & contrast

On white

10.74
#2F2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F2C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C9B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C9B#FFFFFF#000000##FFFFFF
##2F2C9B1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2c9b;
/* rgb */ color: rgb(47, 44, 155);
/* oklch */ color: oklch(37.9% 0.173 275.4);
Tailwind
colors: {
  custom: {
    50: '#7766ba',
    500: '#2f2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c9b;
$custom-light: #7766ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c9b",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 241.622,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37862,
    "c": 0.17339,
    "h": 275.4
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#2F2C9B
secondary
#BABC67
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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