#2F34AA#2F34AA

#2F34AA is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.184 H 272.9°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2F34AA
RGBrgb(47, 52, 170)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 72%, 67%)
CMYKcmyk(72.4%, 69.4%, 0%, 33.3%)
CIE-LABlab(29.32, 37.96, -63.50)
CIE-LCHlch(29.32, 73.98, 300.87°)
OKLaboklab(40.64% 0.0092 -0.1836)
OKLCHoklch(40.64% 0.184 272.9)
XYZxyz(9.6535, 5.9616, 38.6644)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34AA #AAA52F
analogous
#2F71AA #2F34AA #682FAA
triadic
#2F34AA #AA2F34 #34AA2F
tetradic
#2F34AA #AA2F71 #AAA52F #2FAA68
square
#2F34AA #AA2F71 #AAA52F #2FAA68
split-complementary
#2F34AA #AA682F #71AA2F
monochromatic
#14174A #22257A #2F34AA #494FCD #797DDA

Accessibility & contrast

On white

9.58
#2F34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34AA
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34AA#FFFFFF#000000##FFFFFF
##2F34AA1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#003FA8
Tritanopia (blue-blind)
#00546B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f34aa;
/* rgb */ color: rgb(47, 52, 170);
/* oklch */ color: oklch(40.6% 0.184 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a6cc4',
    500: '#2f34aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f34aa;
$custom-light: #7a6cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34aa",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 237.561,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40636,
    "c": 0.18383,
    "h": 272.9
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#2F34AA
secondary
#C2BF72
accent
#DA48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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