#2F349E#2F349E

#2F349E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.168 H 273.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2F349E
RGBrgb(47, 52, 158)
HSLhsl(237, 54%, 40%)
HSVhsv(237, 70%, 62%)
CMYKcmyk(70.3%, 67.1%, 0%, 38%)
CIE-LABlab(28.19, 33.74, -58.10)
CIE-LCHlch(28.19, 67.18, 300.14°)
OKLaboklab(39.48% 0.0105 -0.1678)
OKLCHoklch(39.48% 0.168 273.6)
XYZxyz(8.5698, 5.5281, 32.9565)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F349E #9E992F
analogous
#2F6C9E #2F349E #612F9E
triadic
#2F349E #9E2F34 #349E2F
tetradic
#2F349E #9E2F6C #9E992F #2F9E61
square
#2F349E #9E2F6C #9E992F #2F9E61
split-complementary
#2F349E #9E612F #6C9E2F
monochromatic
#131540 #21246F #2F349E #4349C7 #7277D5

Accessibility & contrast

On white

9.97
#2F349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F349E
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F349E#FFFFFF#000000##FFFFFF
##2F349E1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f349e;
/* rgb */ color: rgb(47, 52, 158);
/* oklch */ color: oklch(39.5% 0.168 273.6);
Tailwind
colors: {
  custom: {
    50: '#776cbc',
    500: '#2f349e',
    950: '#000000',
  },
}
SCSS
$custom: #2f349e;
$custom-light: #776cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f349e",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 237.297,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39476,
    "c": 0.16813,
    "h": 273.6
  },
  "luminance": 0.05529
}

Semantic roles & 50–950 ramp

primary
#2F349E
secondary
#BDB96C
accent
#D74ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F349E

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

Preview Lab → · Contrast checker → · Palette generator →

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