#2F34CA#2F34CA

#2F34CA is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.9% C 0.223 H 271.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2F34CA
RGBrgb(47, 52, 202)
HSLhsl(238, 62%, 49%)
HSVhsv(238, 77%, 79%)
CMYKcmyk(76.7%, 74.3%, 0%, 20.8%)
CIE-LABlab(32.53, 48.81, -77.13)
CIE-LCHlch(32.53, 91.27, 302.33°)
OKLaboklab(43.9% 0.0045 -0.2233)
OKLCHoklch(43.9% 0.223 271.2)
XYZxyz(13.0573, 7.3232, 56.5910)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34CA #CAC52F
analogous
#2F81CA #2F34CA #782FCA
triadic
#2F34CA #CA2F34 #34CA2F
tetradic
#2F34CA #CA2F81 #CAC52F #2FCA78
square
#2F34CA #CA2F81 #CAC52F #2FCA78
split-complementary
#2F34CA #CA782F #81CA2F
monochromatic
#181A67 #232798 #2F34CA #5D61D9 #8F91E5

Accessibility & contrast

On white

8.52
#2F34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34CA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34CA#FFFFFF#000000##FFFFFF
##2F34CA1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#0045C7
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f34ca;
/* rgb */ color: rgb(47, 52, 202);
/* oklch */ color: oklch(43.9% 0.223 271.2);
Tailwind
colors: {
  custom: {
    50: '#816ddc',
    500: '#2f34ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f34ca;
$custom-light: #816ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34ca",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 238.065,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.22337,
    "h": 271.2
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#2F34CA
secondary
#CFCD86
accent
#E042E5
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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