#2F34AC#2F34AC

#2F34AC is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.186 H 272.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2F34AC
RGBrgb(47, 52, 172)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 73%, 67%)
CMYKcmyk(72.7%, 69.8%, 0%, 32.5%)
CIE-LABlab(29.51, 38.66, -64.38)
CIE-LCHlch(29.51, 75.09, 300.98°)
OKLaboklab(40.83% 0.009 -0.1862)
OKLCHoklch(40.83% 0.186 272.8)
XYZxyz(9.8442, 6.0379, 39.6684)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34AC #ACA72F
analogous
#2F72AC #2F34AC #682FAC
triadic
#2F34AC #AC2F34 #34AC2F
tetradic
#2F34AC #AC2F72 #ACA72F #2FAC68
square
#2F34AC #AC2F72 #ACA72F #2FAC68
split-complementary
#2F34AC #AC682F #72AC2F
monochromatic
#15174C #22257C #2F34AC #4B50CE #7B7EDB

Accessibility & contrast

On white

9.51
#2F34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34AC
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34AC#FFFFFF#000000##FFFFFF
##2F34AC1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f34ac;
/* rgb */ color: rgb(47, 52, 172);
/* oklch */ color: oklch(40.8% 0.186 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a6cc6',
    500: '#2f34ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f34ac;
$custom-light: #7a6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34ac",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 237.6,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40833,
    "c": 0.1864,
    "h": 272.8
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#2F34AC
secondary
#C3C074
accent
#DA47E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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