#2F34A4#2F34A4

#2F34A4 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.176 H 273.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2F34A4
RGBrgb(47, 52, 164)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 64%)
CMYKcmyk(71.3%, 68.3%, 0%, 35.7%)
CIE-LABlab(28.75, 35.86, -60.82)
CIE-LCHlch(28.75, 70.60, 300.52°)
OKLaboklab(40.05% 0.0099 -0.1758)
OKLCHoklch(40.05% 0.176 273.2)
XYZxyz(9.0989, 5.7398, 35.7431)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A4 #A49F2F
analogous
#2F6FA4 #2F34A4 #652FA4
triadic
#2F34A4 #A42F34 #34A42F
tetradic
#2F34A4 #A42F6F #A49F2F #2FA465
square
#2F34A4 #A42F6F #A49F2F #2FA465
split-complementary
#2F34A4 #A4652F #6FA42F
monochromatic
#141645 #212574 #2F34A4 #464CCA #767AD8

Accessibility & contrast

On white

9.78
#2F34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A4
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A4#FFFFFF#000000##FFFFFF
##2F34A41.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f34a4;
/* rgb */ color: rgb(47, 52, 164);
/* oklch */ color: oklch(40.1% 0.176 273.2);
Tailwind
colors: {
  custom: {
    50: '#796cc0',
    500: '#2f34a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a4;
$custom-light: #796cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a4",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 237.436,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40051,
    "c": 0.17605,
    "h": 273.2
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#2F34A4
secondary
#C0BC6F
accent
#D849DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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