#2F347F#2F347F

#2F347F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.125 H 275.5°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2F347F
RGBrgb(47, 52, 127)
HSLhsl(236, 46%, 34%)
HSVhsv(236, 63%, 50%)
CMYKcmyk(63%, 59.1%, 0%, 50.2%)
CIE-LABlab(25.54, 22.55, -43.26)
CIE-LCHlch(25.54, 48.78, 297.53°)
OKLaboklab(36.7% 0.012 -0.1242)
OKLCHoklch(36.7% 0.125 275.5)
XYZxyz(6.2298, 4.5921, 20.6326)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F347F #7F7A2F
analogous
#2F5C7F #2F347F #522F7F
triadic
#2F347F #7F2F34 #347F2F
tetradic
#2F347F #7F2F5C #7F7A2F #2F7F52
square
#2F347F #7F2F5C #7F7A2F #2F7F52
split-complementary
#2F347F #7F522F #5C7F2F
monochromatic
#0E0F26 #1E2252 #2F347F #4046AC #6369C5

Accessibility & contrast

On white

10.95
#2F347F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F347F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F347F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F347F#FFFFFF#000000##FFFFFF
##2F347F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f347f;
/* rgb */ color: rgb(47, 52, 127);
/* oklch */ color: oklch(36.7% 0.125 275.5);
Tailwind
colors: {
  custom: {
    50: '#706ba5',
    500: '#2f347f',
    950: '#000000',
  },
}
SCSS
$custom: #2f347f;
$custom-light: #706ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f347f",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 127
  },
  "hsl": {
    "h": 236.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36704,
    "c": 0.12482,
    "h": 275.5
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#2F347F
secondary
#ACA75E
accent
#CD52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F347F

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

Preview Lab → · Contrast checker → · Palette generator →

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