#2F2B7A#2F2B7A

#2F2B7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.130 H 279.4°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2B7A
RGBrgb(47, 43, 122)
HSLhsl(243, 48%, 32%)
HSVhsv(243, 65%, 48%)
CMYKcmyk(61.5%, 64.8%, 0%, 52.2%)
CIE-LABlab(22.78, 26.79, -44.58)
CIE-LCHlch(22.78, 52.01, 301.01°)
OKLaboklab(34.54% 0.0212 -0.1282)
OKLCHoklch(34.54% 0.13 279.4)
XYZxyz(5.5479, 3.7368, 18.8375)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B7A #767A2B
analogous
#2B4F7A #2F2B7A #572B7A
triadic
#2F2B7A #7A2F2B #2B7A2F
tetradic
#2F2B7A #7A2B4F #767A2B #2B7A57
square
#2F2B7A #7A2B4F #767A2B #2B7A57
split-complementary
#2F2B7A #7A572B #4F7A2B
monochromatic
#0C0B1F #1E1B4D #2F2B7A #403BA7 #605AC5

Accessibility & contrast

On white

12.02
#2F2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B7A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B7A#FFFFFF#000000##FFFFFF
##2F2B7A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2b7a;
/* rgb */ color: rgb(47, 43, 122);
/* oklch */ color: oklch(34.5% 0.130 279.4);
Tailwind
colors: {
  custom: {
    50: '#7064a1',
    500: '#2f2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b7a;
$custom-light: #7064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b7a",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 243.038,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34539,
    "c": 0.12994,
    "h": 279.4
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#2F2B7A
secondary
#A7AB56
accent
#D750D1
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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