#2F347D#2F347D

#2F347D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.122 H 275.6°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2F347D
RGBrgb(47, 52, 125)
HSLhsl(236, 45%, 34%)
HSVhsv(236, 62%, 49%)
CMYKcmyk(62.4%, 58.4%, 0%, 51%)
CIE-LABlab(25.38, 21.82, -42.25)
CIE-LCHlch(25.38, 47.55, 297.31°)
OKLaboklab(36.54% 0.0119 -0.1213)
OKLCHoklch(36.54% 0.122 275.6)
XYZxyz(6.1007, 4.5405, 19.9530)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F347D #7D782F
analogous
#2F5B7D #2F347D #512F7D
triadic
#2F347D #7D2F34 #347D2F
tetradic
#2F347D #7D2F5B #7D782F #2F7D51
square
#2F347D #7D2F5B #7D782F #2F7D51
split-complementary
#2F347D #7D512F #5B7D2F
monochromatic
#0E0F24 #1E2151 #2F347D #4047A9 #6269C4

Accessibility & contrast

On white

11.01
#2F347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F347D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F347D#FFFFFF#000000##FFFFFF
##2F347D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f347d;
/* rgb */ color: rgb(47, 52, 125);
/* oklch */ color: oklch(36.5% 0.122 275.6);
Tailwind
colors: {
  custom: {
    50: '#706ba3',
    500: '#2f347d',
    950: '#000000',
  },
}
SCSS
$custom: #2f347d;
$custom-light: #706ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f347d",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 236.154,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.12187,
    "h": 275.6
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#2F347D
secondary
#ABA65D
accent
#CD53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F347D

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

Preview Lab → · Contrast checker → · Palette generator →

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