#2F34B5#2F34B5

#2F34B5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.198 H 272.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2F34B5
RGBrgb(47, 52, 181)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 71%)
CMYKcmyk(74%, 71.3%, 0%, 29%)
CIE-LABlab(30.39, 41.76, -68.30)
CIE-LCHlch(30.39, 80.06, 301.44°)
OKLaboklab(41.73% 0.0078 -0.1976)
OKLCHoklch(41.73% 0.198 272.3)
XYZxyz(10.7380, 6.3954, 44.3756)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B5 #B5B02F
analogous
#2F77B5 #2F34B5 #6D2FB5
triadic
#2F34B5 #B52F34 #34B52F
tetradic
#2F34B5 #B52F77 #B5B02F #2FB56D
square
#2F34B5 #B52F77 #B5B02F #2FB56D
split-complementary
#2F34B5 #B56D2F #77B52F
monochromatic
#161854 #222684 #2F34B5 #5055D1 #8084DE

Accessibility & contrast

On white

9.21
#2F34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F34B5
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B5#FFFFFF#000000##FFFFFF
##2F34B51.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f34b5;
/* rgb */ color: rgb(47, 52, 181);
/* oklch */ color: oklch(41.7% 0.198 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d6ccc',
    500: '#2f34b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b5;
$custom-light: #7d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b5",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 237.761,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41733,
    "c": 0.19778,
    "h": 272.3
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#2F34B5
secondary
#C7C479
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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