#2F34AE#2F34AE

#2F34AE is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.189 H 272.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F34AE
RGBrgb(47, 52, 174)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 73%, 68%)
CMYKcmyk(73%, 70.1%, 0%, 31.8%)
CIE-LABlab(29.70, 39.35, -65.26)
CIE-LCHlch(29.70, 76.21, 301.09°)
OKLaboklab(41.03% 0.0087 -0.1887)
OKLCHoklch(41.03% 0.189 272.6)
XYZxyz(10.0377, 6.1153, 40.6876)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34AE #AEA92F
analogous
#2F73AE #2F34AE #692FAE
triadic
#2F34AE #AE2F34 #34AE2F
tetradic
#2F34AE #AE2F73 #AEA92F #2FAE69
square
#2F34AE #AE2F73 #AEA92F #2FAE69
split-complementary
#2F34AE #AE692F #73AE2F
monochromatic
#15174E #22267E #2F34AE #4C51CF #7C80DC

Accessibility & contrast

On white

9.45
#2F34AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F34AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34AE
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34AE#FFFFFF#000000##FFFFFF
##2F34AE1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f34ae;
/* rgb */ color: rgb(47, 52, 174);
/* oklch */ color: oklch(41.0% 0.189 272.6);
Tailwind
colors: {
  custom: {
    50: '#7b6cc7',
    500: '#2f34ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f34ae;
$custom-light: #7b6cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34ae",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 237.638,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41031,
    "c": 0.18895,
    "h": 272.6
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F34AE

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

Preview Lab → · Contrast checker → · Palette generator →

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