#2F34B4#2F34B4

#2F34B4 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.197 H 272.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2F34B4
RGBrgb(47, 52, 180)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 71%)
CMYKcmyk(73.9%, 71.1%, 0%, 29.4%)
CIE-LABlab(30.29, 41.42, -67.87)
CIE-LCHlch(30.29, 79.51, 301.39°)
OKLaboklab(41.63% 0.0079 -0.1964)
OKLCHoklch(41.63% 0.197 272.3)
XYZxyz(10.6357, 6.3545, 43.8372)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B4 #B4AF2F
analogous
#2F77B4 #2F34B4 #6C2FB4
triadic
#2F34B4 #B42F34 #34B42F
tetradic
#2F34B4 #B42F77 #B4AF2F #2FB46C
square
#2F34B4 #B42F77 #B4AF2F #2FB46C
split-complementary
#2F34B4 #B46C2F #77B42F
monochromatic
#161853 #222683 #2F34B4 #4F54D1 #8083DE

Accessibility & contrast

On white

9.25
#2F34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B4
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B4#FFFFFF#000000##FFFFFF
##2F34B41.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0041B2
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f34b4;
/* rgb */ color: rgb(47, 52, 180);
/* oklch */ color: oklch(41.6% 0.197 272.3);
Tailwind
colors: {
  custom: {
    50: '#7c6ccc',
    500: '#2f34b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b4;
$custom-light: #7c6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b4",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 237.744,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41632,
    "c": 0.19653,
    "h": 272.3
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#2F34B4
secondary
#C7C478
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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