#2F3AA6#2F3AA6

#2F3AA6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.172 H 271.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2F3AA6
RGBrgb(47, 58, 166)
HSLhsl(234, 56%, 42%)
HSVhsv(234, 72%, 65%)
CMYKcmyk(71.7%, 65.1%, 0%, 34.9%)
CIE-LABlab(30.36, 32.76, -59.38)
CIE-LCHlch(30.36, 67.82, 298.88°)
OKLaboklab(41.28% 0.0057 -0.1715)
OKLCHoklch(41.28% 0.172 271.9)
XYZxyz(9.5660, 6.3827, 36.7968)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3AA6 #A69B2F
analogous
#2F76A6 #2F3AA6 #602FA6
triadic
#2F3AA6 #A62F3A #3AA62F
tetradic
#2F3AA6 #A62F76 #A69B2F #2FA660
square
#2F3AA6 #A62F76 #A69B2F #2FA660
split-complementary
#2F3AA6 #A6602F #76A62F
monochromatic
#141947 #212976 #2F3AA6 #4753CB #7780D8

Accessibility & contrast

On white

9.22
#2F3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F3AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3AA6
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3AA6#FFFFFF#000000##FFFFFF
##2F3AA61.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3aa6;
/* rgb */ color: rgb(47, 58, 166);
/* oklch */ color: oklch(41.3% 0.172 271.9);
Tailwind
colors: {
  custom: {
    50: '#7870c1',
    500: '#2f3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f3aa6;
$custom-light: #7870c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3aa6",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 234.454,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41281,
    "c": 0.17163,
    "h": 271.9
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#2F3AA6
secondary
#C1B970
accent
#D149DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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