#2F34CF#2F34CF

#2F34CF is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.4% C 0.229 H 270.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2F34CF
RGBrgb(47, 52, 207)
HSLhsl(238, 63%, 50%)
HSVhsv(238, 77%, 81%)
CMYKcmyk(77.3%, 74.9%, 0%, 18.8%)
CIE-LABlab(33.06, 50.44, -79.17)
CIE-LCHlch(33.06, 93.87, 302.50°)
OKLaboklab(44.43% 0.0037 -0.2292)
OKLCHoklch(44.43% 0.229 270.9)
XYZxyz(13.6589, 7.5638, 59.7595)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34CF #CFCA2F
analogous
#2F84CF #2F34CF #7A2FCF
triadic
#2F34CF #CF2F34 #34CF2F
tetradic
#2F34CF #CF2F84 #CFCA2F #2FCF7A
square
#2F34CF #CF2F84 #CFCA2F #2FCF7A
split-complementary
#2F34CF #CF7A2F #84CF2F
monochromatic
#181B6B #24279D #2F34CF #6064DB #9295E6

Accessibility & contrast

On white

8.36
#2F34CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F34CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34CF
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34CF#FFFFFF#000000##FFFFFF
##2F34CF1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D3
Deuteranopia (green-blind)
#0046CC
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f34cf;
/* rgb */ color: rgb(47, 52, 207);
/* oklch */ color: oklch(44.4% 0.229 270.9);
Tailwind
colors: {
  custom: {
    50: '#836ddf',
    500: '#2f34cf',
    950: '#000000',
  },
}
SCSS
$custom: #2f34cf;
$custom-light: #836ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34cf",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 238.125,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44429,
    "c": 0.22928,
    "h": 270.9
  },
  "luminance": 0.07565
}

Semantic roles & 50–950 ramp

primary
#2F34CF
secondary
#D1CF89
accent
#E142E6
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #2F34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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