#2F4064#2F4064

#2F4064 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.5% C 0.066 H 264.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2F4064
RGBrgb(47, 64, 100)
HSLhsl(221, 36%, 29%)
HSVhsv(221, 53%, 39%)
CMYKcmyk(53%, 36%, 0%, 60.8%)
CIE-LABlab(27.27, 4.57, -23.31)
CIE-LCHlch(27.27, 23.75, 281.09°)
OKLaboklab(37.45% -0.0066 -0.0656)
OKLCHoklch(37.45% 0.066 264.2)
XYZxyz(5.3052, 5.1909, 12.7765)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4064 #64532F
analogous
#2F5B64 #2F4064 #392F64
triadic
#2F4064 #642F40 #40642F
tetradic
#2F4064 #642F5B #64532F #2F6439
square
#2F4064 #642F5B #64532F #2F6439
split-complementary
#2F4064 #64392F #5B642F
monochromatic
#0A0D15 #1B253A #2F4064 #435B8E #5B77B2

Accessibility & contrast

On white

10.30
#2F4064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F4064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4064
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4064#FFFFFF#000000##FFFFFF
##2F40641.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324365
Deuteranopia (green-blind)
#2C3E63
Tritanopia (blue-blind)
#18484D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f4064;
/* rgb */ color: rgb(47, 64, 100);
/* oklch */ color: oklch(37.5% 0.066 264.2);
Tailwind
colors: {
  custom: {
    50: '#6b7490',
    500: '#2f4064',
    950: '#000000',
  },
}
SCSS
$custom: #2f4064;
$custom-light: #6b7490;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4064",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 100
  },
  "hsl": {
    "h": 220.755,
    "s": 36.054,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.06596,
    "h": 264.2
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#2F4064
secondary
#968259
accent
#A85CCC
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #2F4064

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

Preview Lab → · Contrast checker → · Palette generator →

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