#2F34A6#2F34A6

#2F34A6 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.179 H 273.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2F34A6
RGBrgb(47, 52, 166)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(71.7%, 68.7%, 0%, 34.9%)
CIE-LABlab(28.93, 36.56, -61.72)
CIE-LCHlch(28.93, 71.73, 300.64°)
OKLaboklab(40.24% 0.0097 -0.1784)
OKLCHoklch(40.24% 0.179 273.1)
XYZxyz(9.2809, 5.8126, 36.7018)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A6 #A6A12F
analogous
#2F70A6 #2F34A6 #662FA6
triadic
#2F34A6 #A62F34 #34A62F
tetradic
#2F34A6 #A62F70 #A6A12F #2FA666
square
#2F34A6 #A62F70 #A6A12F #2FA666
split-complementary
#2F34A6 #A6662F #70A62F
monochromatic
#141647 #212576 #2F34A6 #474DCB #777BD8

Accessibility & contrast

On white

9.71
#2F34A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F34A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A6
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A6#FFFFFF#000000##FFFFFF
##2F34A61.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f34a6;
/* rgb */ color: rgb(47, 52, 166);
/* oklch */ color: oklch(40.2% 0.179 273.1);
Tailwind
colors: {
  custom: {
    50: '#796cc1',
    500: '#2f34a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a6;
$custom-light: #796cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a6",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 237.479,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.17866,
    "h": 273.1
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#2F34A6
secondary
#C1BD70
accent
#D949DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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