#2F34A8#2F34A8

#2F34A8 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.181 H 273.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F34A8
RGBrgb(47, 52, 168)
HSLhsl(238, 56%, 42%)
HSVhsv(238, 72%, 66%)
CMYKcmyk(72%, 69%, 0%, 34.1%)
CIE-LABlab(29.12, 37.26, -62.61)
CIE-LCHlch(29.12, 72.86, 300.76°)
OKLaboklab(40.44% 0.0095 -0.181)
OKLCHoklch(40.44% 0.181 273)
XYZxyz(9.4658, 5.8865, 37.6756)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A8 #A8A32F
analogous
#2F70A8 #2F34A8 #672FA8
triadic
#2F34A8 #A82F34 #34A82F
tetradic
#2F34A8 #A82F70 #A8A32F #2FA867
square
#2F34A8 #A82F70 #A8A32F #2FA867
split-complementary
#2F34A8 #A8672F #70A82F
monochromatic
#141648 #222578 #2F34A8 #484ECC #787CD9

Accessibility & contrast

On white

9.64
#2F34A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F34A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A8
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A8#FFFFFF#000000##FFFFFF
##2F34A81.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f34a8;
/* rgb */ color: rgb(47, 52, 168);
/* oklch */ color: oklch(40.4% 0.181 273.0);
Tailwind
colors: {
  custom: {
    50: '#796cc3',
    500: '#2f34a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a8;
$custom-light: #796cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a8",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 168
  },
  "hsl": {
    "h": 237.521,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4044,
    "c": 0.18126,
    "h": 273
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#2F34A8
secondary
#C1BE71
accent
#D948E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34A8

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

Preview Lab → · Contrast checker → · Palette generator →

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