#2F345E#2F345E

#2F345E is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.2% C 0.073 H 276.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2F345E
RGBrgb(47, 52, 94)
HSLhsl(234, 33%, 28%)
HSVhsv(234, 50%, 37%)
CMYKcmyk(50%, 44.7%, 0%, 63.1%)
CIE-LABlab(23.23, 10.71, -25.79)
CIE-LCHlch(23.23, 27.93, 292.54°)
OKLaboklab(34.22% 0.0085 -0.0729)
OKLCHoklch(34.22% 0.073 276.7)
XYZxyz(4.4200, 3.8682, 11.1012)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F345E #5E592F
analogous
#2F4B5E #2F345E #412F5E
triadic
#2F345E #5E2F34 #345E2F
tetradic
#2F345E #5E2F4B #5E592F #2F5E41
square
#2F345E #5E2F4B #5E592F #2F5E41
split-complementary
#2F345E #5E412F #4B5E2F
monochromatic
#0A0B14 #1B1D35 #2F345E #434B87 #5B63AD

Accessibility & contrast

On white

11.84
#2F345E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F345E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F345E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F345E#FFFFFF#000000##FFFFFF
##2F345E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243960
Deuteranopia (green-blind)
#20365D
Tritanopia (blue-blind)
#1E3D44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f345e;
/* rgb */ color: rgb(47, 52, 94);
/* oklch */ color: oklch(34.2% 0.073 276.7);
Tailwind
colors: {
  custom: {
    50: '#6b6b8c',
    500: '#2f345e',
    950: '#000000',
  },
}
SCSS
$custom: #2f345e;
$custom-light: #6b6b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f345e",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 94
  },
  "hsl": {
    "h": 233.617,
    "s": 33.333,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34224,
    "c": 0.07343,
    "h": 276.7
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#2F345E
secondary
#908A59
accent
#BE5EC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #2F345E

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

Preview Lab → · Contrast checker → · Palette generator →

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