#2F34B9#2F34B9

#2F34B9 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.1% C 0.203 H 272.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F34B9
RGBrgb(47, 52, 185)
HSLhsl(238, 59%, 45%)
HSVhsv(238, 75%, 73%)
CMYKcmyk(74.6%, 71.9%, 0%, 27.5%)
CIE-LABlab(30.79, 43.12, -70.02)
CIE-LCHlch(30.79, 82.23, 301.63°)
OKLaboklab(42.14% 0.0072 -0.2026)
OKLCHoklch(42.14% 0.203 272)
XYZxyz(11.1543, 6.5619, 46.5683)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34B9 #B9B42F
analogous
#2F79B9 #2F34B9 #6F2FB9
triadic
#2F34B9 #B92F34 #34B92F
tetradic
#2F34B9 #B92F79 #B9B42F #2FB96F
square
#2F34B9 #B92F79 #B9B42F #2FB96F
split-complementary
#2F34B9 #B96F2F #79B92F
monochromatic
#161957 #232688 #2F34B9 #5257D3 #8386DF

Accessibility & contrast

On white

9.08
#2F34B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F34B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34B9
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34B9#FFFFFF#000000##FFFFFF
##2F34B91.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0042B7
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f34b9;
/* rgb */ color: rgb(47, 52, 185);
/* oklch */ color: oklch(42.1% 0.203 272.0);
Tailwind
colors: {
  custom: {
    50: '#7d6dcf',
    500: '#2f34b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f34b9;
$custom-light: #7d6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34b9",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 237.826,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42139,
    "c": 0.20276,
    "h": 272
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#2F34B9
secondary
#C9C67B
accent
#DD45E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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