#2F347E#2F347E

#2F347E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.123 H 275.6°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F347E
RGBrgb(47, 52, 126)
HSLhsl(236, 46%, 34%)
HSVhsv(236, 63%, 49%)
CMYKcmyk(62.7%, 58.7%, 0%, 50.6%)
CIE-LABlab(25.46, 22.18, -42.75)
CIE-LCHlch(25.46, 48.17, 297.42°)
OKLaboklab(36.62% 0.012 -0.1228)
OKLCHoklch(36.62% 0.123 275.6)
XYZxyz(6.1650, 4.5662, 20.2911)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F347E #7E792F
analogous
#2F5C7E #2F347E #522F7E
triadic
#2F347E #7E2F34 #347E2F
tetradic
#2F347E #7E2F5C #7E792F #2F7E52
square
#2F347E #7E2F5C #7E792F #2F7E52
split-complementary
#2F347E #7E522F #5C7E2F
monochromatic
#0E0F25 #1E2251 #2F347E #4046AB #6369C5

Accessibility & contrast

On white

10.98
#2F347E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F347E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F347E#FFFFFF#000000##FFFFFF
##2F347E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f347e;
/* rgb */ color: rgb(47, 52, 126);
/* oklch */ color: oklch(36.6% 0.123 275.6);
Tailwind
colors: {
  custom: {
    50: '#706ba4',
    500: '#2f347e',
    950: '#000000',
  },
}
SCSS
$custom: #2f347e;
$custom-light: #706ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f347e",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 126
  },
  "hsl": {
    "h": 236.203,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36621,
    "c": 0.12335,
    "h": 275.6
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#2F347E
secondary
#ACA75D
accent
#CD52D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F347E

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

Preview Lab → · Contrast checker → · Palette generator →

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