#2F348B#2F348B

#2F348B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.142 H 274.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F348B
RGBrgb(47, 52, 139)
HSLhsl(237, 49%, 36%)
HSVhsv(237, 66%, 55%)
CMYKcmyk(66.2%, 62.6%, 0%, 45.5%)
CIE-LABlab(26.52, 26.91, -49.16)
CIE-LCHlch(26.52, 56.05, 298.69°)
OKLaboklab(37.73% 0.0118 -0.1416)
OKLCHoklch(37.73% 0.142 274.8)
XYZxyz(7.0589, 4.9238, 24.9995)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F348B #8B862F
analogous
#2F628B #2F348B #582F8B
triadic
#2F348B #8B2F34 #348B2F
tetradic
#2F348B #8B2F62 #8B862F #2F8B58
square
#2F348B #8B2F62 #8B862F #2F8B58
split-complementary
#2F348B #8B582F #628B2F
monochromatic
#101230 #20235D #2F348B #3E45B9 #686ECC

Accessibility & contrast

On white

10.58
#2F348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F348B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F348B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F348B#FFFFFF#000000##FFFFFF
##2F348B1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f348b;
/* rgb */ color: rgb(47, 52, 139);
/* oklch */ color: oklch(37.7% 0.142 274.8);
Tailwind
colors: {
  custom: {
    50: '#736bae',
    500: '#2f348b',
    950: '#000000',
  },
}
SCSS
$custom: #2f348b;
$custom-light: #736bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f348b",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 236.739,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37734,
    "c": 0.1421,
    "h": 274.8
  },
  "luminance": 0.04924
}

Semantic roles & 50–950 ramp

primary
#2F348B
secondary
#B3AF63
accent
#D14FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F348B

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

Preview Lab → · Contrast checker → · Palette generator →

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