#2F2C7B#2F2C7B

#2F2C7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.130 H 278.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2F2C7B
RGBrgb(47, 44, 123)
HSLhsl(242, 47%, 33%)
HSVhsv(242, 64%, 48%)
CMYKcmyk(61.8%, 64.2%, 0%, 51.8%)
CIE-LABlab(23.12, 26.48, -44.66)
CIE-LCHlch(23.12, 51.92, 300.67°)
OKLaboklab(34.81% 0.0201 -0.1284)
OKLCHoklch(34.81% 0.13 278.9)
XYZxyz(5.6470, 3.8354, 19.1778)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C7B #787B2C
analogous
#2C517B #2F2C7B #562C7B
triadic
#2F2C7B #7B2F2C #2C7B2F
tetradic
#2F2C7B #7B2C51 #787B2C #2C7B56
square
#2F2C7B #7B2C51 #787B2C #2C7B56
split-complementary
#2F2C7B #7B562C #517B2C
monochromatic
#0D0C21 #1E1C4E #2F2C7B #403CA8 #605DC5

Accessibility & contrast

On white

11.88
#2F2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C7B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C7B#FFFFFF#000000##FFFFFF
##2F2C7B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2c7b;
/* rgb */ color: rgb(47, 44, 123);
/* oklch */ color: oklch(34.8% 0.130 278.9);
Tailwind
colors: {
  custom: {
    50: '#7065a2',
    500: '#2f2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c7b;
$custom-light: #7065a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c7b",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 242.278,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34813,
    "c": 0.13001,
    "h": 278.9
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#2F2C7B
secondary
#A8AB58
accent
#D751D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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