#2F345D#2F345D

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

Color values

HEX#2F345D
RGBrgb(47, 52, 93)
HSLhsl(233, 33%, 27%)
HSVhsv(233, 49%, 36%)
CMYKcmyk(49.5%, 44.1%, 0%, 63.5%)
CIE-LABlab(23.17, 10.36, -25.23)
CIE-LCHlch(23.17, 27.28, 292.32°)
OKLaboklab(34.16% 0.0083 -0.0713)
OKLCHoklch(34.16% 0.072 276.6)
XYZxyz(4.3755, 3.8504, 10.8665)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F345D #5D582F
analogous
#2F4B5D #2F345D #412F5D
triadic
#2F345D #5D2F34 #345D2F
tetradic
#2F345D #5D2F4B #5D582F #2F5D41
square
#2F345D #5D2F4B #5D582F #2F5D41
split-complementary
#2F345D #5D412F #4B5D2F
monochromatic
#0A0B14 #1A1D34 #2F345D #444B86 #5B63AC

Accessibility & contrast

On white

11.86
#2F345D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F345D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F345D#FFFFFF#000000##FFFFFF
##2F345D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24395F
Deuteranopia (green-blind)
#21365C
Tritanopia (blue-blind)
#1F3C44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f345d;
/* rgb */ color: rgb(47, 52, 93);
/* oklch */ color: oklch(34.2% 0.072 276.6);
Tailwind
colors: {
  custom: {
    50: '#6a6b8b',
    500: '#2f345d',
    950: '#000000',
  },
}
SCSS
$custom: #2f345d;
$custom-light: #6a6b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f345d",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 93
  },
  "hsl": {
    "h": 233.478,
    "s": 32.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34158,
    "c": 0.07179,
    "h": 276.6
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2F345D
secondary
#8F8959
accent
#BD5FC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #2F345D

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

Preview Lab → · Contrast checker → · Palette generator →

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