#2F34BB#2F34BB

#2F34BB is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.3% C 0.205 H 271.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2F34BB
RGBrgb(47, 52, 187)
HSLhsl(238, 60%, 46%)
HSVhsv(238, 75%, 73%)
CMYKcmyk(74.9%, 72.2%, 0%, 26.7%)
CIE-LABlab(30.99, 43.80, -70.87)
CIE-LCHlch(30.99, 83.31, 301.72°)
OKLaboklab(42.34% 0.0069 -0.2051)
OKLCHoklch(42.34% 0.205 271.9)
XYZxyz(11.3669, 6.6470, 47.6880)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34BB #BBB62F
analogous
#2F7ABB #2F34BB #702FBB
triadic
#2F34BB #BB2F34 #34BB2F
tetradic
#2F34BB #BB2F7A #BBB62F #2FBB70
square
#2F34BB #BB2F7A #BBB62F #2FBB70
split-complementary
#2F34BB #BB702F #7ABB2F
monochromatic
#161959 #23268A #2F34BB #5358D4 #8488E0

Accessibility & contrast

On white

9.01
#2F34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F34BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34BB
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34BB#FFFFFF#000000##FFFFFF
##2F34BB1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BF
Deuteranopia (green-blind)
#0042B9
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f34bb;
/* rgb */ color: rgb(47, 52, 187);
/* oklch */ color: oklch(42.3% 0.205 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e6dd1',
    500: '#2f34bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f34bb;
$custom-light: #7e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34bb",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 237.857,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.20523,
    "h": 271.9
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#2F34BB
secondary
#C9C77C
accent
#DD45E3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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