#2F2A7F#2F2A7F

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

Color values

HEX#2F2A7F
RGBrgb(47, 42, 127)
HSLhsl(244, 50%, 33%)
HSVhsv(244, 67%, 50%)
CMYKcmyk(63%, 66.9%, 0%, 50.2%)
CIE-LABlab(22.97, 29.20, -47.43)
CIE-LCHlch(22.97, 55.70, 301.62°)
OKLaboklab(34.81% 0.0217 -0.1366)
OKLCHoklch(34.81% 0.138 279)
XYZxyz(5.8298, 3.7921, 20.4993)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A7F #7A7F2A
analogous
#2A4F7F #2F2A7F #592A7F
triadic
#2F2A7F #7F2F2A #2A7F2F
tetradic
#2F2A7F #7F2A4F #7A7F2A #2A7F59
square
#2F2A7F #7F2A4F #7A7F2A #2A7F59
split-complementary
#2F2A7F #7F592A #4F7F2A
monochromatic
#0D0C23 #1E1B51 #2F2A7F #4039AD #615BC9

Accessibility & contrast

On white

11.94
#2F2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A7F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A7F#FFFFFF#000000##FFFFFF
##2F2A7F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2a7f;
/* rgb */ color: rgb(47, 42, 127);
/* oklch */ color: oklch(34.8% 0.138 279.0);
Tailwind
colors: {
  custom: {
    50: '#7164a5',
    500: '#2f2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a7f;
$custom-light: #7164a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a7f",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 243.529,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34814,
    "c": 0.13831,
    "h": 279
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#2F2A7F
secondary
#A9AE57
accent
#DA4ED2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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