#2F345C#2F345C

#2F345C is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.070 H 276.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2F345C
RGBrgb(47, 52, 92)
HSLhsl(233, 32%, 27%)
HSVhsv(233, 49%, 36%)
CMYKcmyk(48.9%, 43.5%, 0%, 63.9%)
CIE-LABlab(23.11, 10.01, -24.67)
CIE-LCHlch(23.11, 26.63, 292.09°)
OKLaboklab(34.09% 0.0081 -0.0697)
OKLCHoklch(34.09% 0.07 276.6)
XYZxyz(4.3315, 3.8328, 10.6347)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F345C #5C572F
analogous
#2F4B5C #2F345C #402F5C
triadic
#2F345C #5C2F34 #345C2F
tetradic
#2F345C #5C2F4B #5C572F #2F5C40
square
#2F345C #5C2F4B #5C572F #2F5C40
split-complementary
#2F345C #5C402F #4B5C2F
monochromatic
#0A0B14 #1A1D33 #2F345C #444B85 #5A63AB

Accessibility & contrast

On white

11.89
#2F345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F345C
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F345C#FFFFFF#000000##FFFFFF
##2F345C1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25395E
Deuteranopia (green-blind)
#21355B
Tritanopia (blue-blind)
#1F3C43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f345c;
/* rgb */ color: rgb(47, 52, 92);
/* oklch */ color: oklch(34.1% 0.070 276.6);
Tailwind
colors: {
  custom: {
    50: '#6a6b8a',
    500: '#2f345c',
    950: '#000000',
  },
}
SCSS
$custom: #2f345c;
$custom-light: #6a6b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f345c",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 233.333,
    "s": 32.374,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34092,
    "c": 0.07014,
    "h": 276.6
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F345C

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

Preview Lab → · Contrast checker → · Palette generator →

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