#2F34B8#2F34B8

#2F34B8 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.0% C 0.202 H 272.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F34B8
RGBrgb(47, 52, 184)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 74%, 72%)
CMYKcmyk(74.5%, 71.7%, 0%, 27.8%)
CIE-LABlab(30.69, 42.78, -69.59)
CIE-LCHlch(30.69, 81.69, 301.58°)
OKLaboklab(42.04% 0.0073 -0.2014)
OKLCHoklch(42.04% 0.202 272.1)
XYZxyz(11.0491, 6.5199, 46.0143)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B8 #B8B32F
analogous
#2F79B8 #2F34B8 #6E2FB8
triadic
#2F34B8 #B82F34 #34B82F
tetradic
#2F34B8 #B82F79 #B8B32F #2FB86E
square
#2F34B8 #B82F79 #B8B32F #2FB86E
split-complementary
#2F34B8 #B86E2F #79B82F
monochromatic
#161857 #232687 #2F34B8 #5256D3 #8286DF

Accessibility & contrast

On white

9.11
#2F34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B8
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B8#FFFFFF#000000##FFFFFF
##2F34B81.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f34b8;
/* rgb */ color: rgb(47, 52, 184);
/* oklch */ color: oklch(42.0% 0.202 272.1);
Tailwind
colors: {
  custom: {
    50: '#7d6ccf',
    500: '#2f34b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b8;
$custom-light: #7d6ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b8",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 237.81,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.20151,
    "h": 272.1
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#2F34B8
secondary
#C8C57B
accent
#DD45E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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