#2F34BC#2F34BC

#2F34BC is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.4% C 0.206 H 271.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2F34BC
RGBrgb(47, 52, 188)
HSLhsl(238, 60%, 46%)
HSVhsv(238, 75%, 74%)
CMYKcmyk(75%, 72.3%, 0%, 26.3%)
CIE-LABlab(31.09, 44.14, -71.29)
CIE-LCHlch(31.09, 83.85, 301.76°)
OKLaboklab(42.45% 0.0068 -0.2063)
OKLCHoklch(42.45% 0.206 271.9)
XYZxyz(11.4743, 6.6899, 48.2538)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34BC #BCB72F
analogous
#2F7ABC #2F34BC #702FBC
triadic
#2F34BC #BC2F34 #34BC2F
tetradic
#2F34BC #BC2F7A #BCB72F #2FBC70
square
#2F34BC #BC2F7A #BCB72F #2FBC70
split-complementary
#2F34BC #BC702F #7ABC2F
monochromatic
#17195A #23268B #2F34BC #5459D4 #8588E0

Accessibility & contrast

On white

8.98
#2F34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34BC
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34BC#FFFFFF#000000##FFFFFF
##2F34BC1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0042BA
Tritanopia (blue-blind)
#005B75
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f34bc;
/* rgb */ color: rgb(47, 52, 188);
/* oklch */ color: oklch(42.4% 0.206 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e6dd1',
    500: '#2f34bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f34bc;
$custom-light: #7e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34bc",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 237.872,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42446,
    "c": 0.20645,
    "h": 271.9
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#2F34BC
secondary
#CAC77D
accent
#DE45E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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