#2F34B1#2F34B1

#2F34B1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.193 H 272.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2F34B1
RGBrgb(47, 52, 177)
HSLhsl(238, 58%, 44%)
HSVhsv(238, 73%, 69%)
CMYKcmyk(73.4%, 70.6%, 0%, 30.6%)
CIE-LABlab(29.99, 40.39, -66.57)
CIE-LCHlch(29.99, 77.86, 301.24°)
OKLaboklab(41.33% 0.0083 -0.1926)
OKLCHoklch(41.33% 0.193 272.5)
XYZxyz(10.3334, 6.2336, 42.2451)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B1 #B1AC2F
analogous
#2F75B1 #2F34B1 #6B2FB1
triadic
#2F34B1 #B12F34 #34B12F
tetradic
#2F34B1 #B12F75 #B1AC2F #2FB16B
square
#2F34B1 #B12F75 #B1AC2F #2FB16B
split-complementary
#2F34B1 #B16B2F #75B12F
monochromatic
#151850 #222681 #2F34B1 #4D52D0 #7E81DD

Accessibility & contrast

On white

9.35
#2F34B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F34B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B1
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B1#FFFFFF#000000##FFFFFF
##2F34B11.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f34b1;
/* rgb */ color: rgb(47, 52, 177);
/* oklch */ color: oklch(41.3% 0.193 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c6cc9',
    500: '#2f34b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b1;
$custom-light: #7c6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b1",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 237.692,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41331,
    "c": 0.19276,
    "h": 272.5
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#2F34B1
secondary
#C5C276
accent
#DB47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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