#2F34B6#2F34B6

#2F34B6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.8% C 0.199 H 272.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2F34B6
RGBrgb(47, 52, 182)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 71%)
CMYKcmyk(74.2%, 71.4%, 0%, 28.6%)
CIE-LABlab(30.49, 42.10, -68.73)
CIE-LCHlch(30.49, 80.60, 301.49°)
OKLaboklab(41.83% 0.0076 -0.1989)
OKLCHoklch(41.83% 0.199 272.2)
XYZxyz(10.8409, 6.4366, 44.9179)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B6 #B6B12F
analogous
#2F77B6 #2F34B6 #6E2FB6
triadic
#2F34B6 #B62F34 #34B62F
tetradic
#2F34B6 #B62F77 #B6B12F #2FB66E
square
#2F34B6 #B62F77 #B6B12F #2FB66E
split-complementary
#2F34B6 #B66E2F #77B62F
monochromatic
#161855 #222685 #2F34B6 #5055D2 #8184DE

Accessibility & contrast

On white

9.18
#2F34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B6
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B6#FFFFFF#000000##FFFFFF
##2F34B61.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0041B4
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f34b6;
/* rgb */ color: rgb(47, 52, 182);
/* oklch */ color: oklch(41.8% 0.199 272.2);
Tailwind
colors: {
  custom: {
    50: '#7d6ccd',
    500: '#2f34b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b6;
$custom-light: #7d6ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b6",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 237.778,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41834,
    "c": 0.19903,
    "h": 272.2
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#2F34B6
secondary
#C7C579
accent
#DC46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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