#2F2E9C#2F2E9C

#2F2E9C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.172 H 275.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2F2E9C
RGBrgb(47, 46, 156)
HSLhsl(241, 54%, 40%)
HSVhsv(241, 71%, 61%)
CMYKcmyk(69.9%, 70.5%, 0%, 38.8%)
CIE-LABlab(26.61, 36.78, -59.46)
CIE-LCHlch(26.61, 69.92, 301.74°)
OKLaboklab(38.28% 0.0149 -0.1718)
OKLCHoklch(38.28% 0.172 275)
XYZxyz(8.1481, 4.9579, 31.9736)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2E9C #9B9C2E
analogous
#2E649C #2F2E9C #662E9C
triadic
#2F2E9C #9C2F2E #2E9C2F
tetradic
#2F2E9C #9C2E64 #9B9C2E #2E9C66
square
#2F2E9C #9C2E64 #9B9C2E #2E9C66
split-complementary
#2F2E9C #9C662E #649C2E
monochromatic
#13123D #21206D #2F2E9C #4240C7 #7170D5

Accessibility & contrast

On white

10.54
#2F2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2E9C
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2E9C#FFFFFF#000000##FFFFFF
##2F2E9C1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2e9c;
/* rgb */ color: rgb(47, 46, 156);
/* oklch */ color: oklch(38.3% 0.172 275.0);
Tailwind
colors: {
  custom: {
    50: '#7767ba',
    500: '#2f2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f2e9c;
$custom-light: #7767ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2e9c",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 240.545,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38279,
    "c": 0.17245,
    "h": 275
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#2F2E9C
secondary
#BBBC6A
accent
#DE4ADC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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