#2F34B7#2F34B7

#2F34B7 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 41.9% C 0.200 H 272.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2F34B7
RGBrgb(47, 52, 183)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 72%)
CMYKcmyk(74.3%, 71.6%, 0%, 28.2%)
CIE-LABlab(30.59, 42.44, -69.16)
CIE-LCHlch(30.59, 81.15, 301.54°)
OKLaboklab(41.94% 0.0075 -0.2001)
OKLCHoklch(41.94% 0.2 272.1)
XYZxyz(10.9446, 6.4781, 45.4642)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B7 #B7B22F
analogous
#2F78B7 #2F34B7 #6E2FB7
triadic
#2F34B7 #B72F34 #34B72F
tetradic
#2F34B7 #B72F78 #B7B22F #2FB76E
square
#2F34B7 #B72F78 #B7B22F #2FB76E
split-complementary
#2F34B7 #B76E2F #78B72F
monochromatic
#161856 #222686 #2F34B7 #5156D2 #8285DF

Accessibility & contrast

On white

9.15
#2F34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B7
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B7#FFFFFF#000000##FFFFFF
##2F34B71.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f34b7;
/* rgb */ color: rgb(47, 52, 183);
/* oklch */ color: oklch(41.9% 0.200 272.1);
Tailwind
colors: {
  custom: {
    50: '#7d6cce',
    500: '#2f34b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b7;
$custom-light: #7d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b7",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 237.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.20027,
    "h": 272.1
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#2F34B7
secondary
#C8C57A
accent
#DD45E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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