#2F3AAA#2F3AAA

#2F3AAA is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.177 H 271.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2F3AAA
RGBrgb(47, 58, 170)
HSLhsl(235, 57%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(72.4%, 65.9%, 0%, 33.3%)
CIE-LABlab(30.72, 34.20, -61.20)
CIE-LCHlch(30.72, 70.10, 299.20°)
OKLaboklab(41.65% 0.0054 -0.1769)
OKLCHoklch(41.65% 0.177 271.7)
XYZxyz(9.9386, 6.5317, 38.7594)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AAA #AA9F2F
analogous
#2F78AA #2F3AAA #612FAA
triadic
#2F3AAA #AA2F3A #3AAA2F
tetradic
#2F3AAA #AA2F78 #AA9F2F #2FAA61
square
#2F3AAA #AA2F78 #AA9F2F #2FAA61
split-complementary
#2F3AAA #AA612F #78AA2F
monochromatic
#14194A #222A7A #2F3AAA #4955CD #7982DA

Accessibility & contrast

On white

9.10
#2F3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AAA
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AAA#FFFFFF#000000##FFFFFF
##2F3AAA1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3aaa;
/* rgb */ color: rgb(47, 58, 170);
/* oklch */ color: oklch(41.7% 0.177 271.7);
Tailwind
colors: {
  custom: {
    50: '#7970c4',
    500: '#2f3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aaa;
$custom-light: #7970c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aaa",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 234.634,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41653,
    "c": 0.17694,
    "h": 271.7
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#2F3AAA
secondary
#C2BB72
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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