#2F4875#2F4875

#2F4875 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.082 H 261.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F4875
RGBrgb(47, 72, 117)
HSLhsl(219, 43%, 32%)
HSVhsv(219, 60%, 46%)
CMYKcmyk(59.8%, 38.5%, 0%, 54.1%)
CIE-LABlab(30.70, 5.27, -28.71)
CIE-LCHlch(30.70, 29.19, 280.40°)
OKLaboklab(40.41% -0.0123 -0.0813)
OKLCHoklch(40.41% 0.082 261.4)
XYZxyz(6.6994, 6.5229, 17.7322)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4875 #755C2F
analogous
#2F6B75 #2F4875 #392F75
triadic
#2F4875 #752F48 #48752F
tetradic
#2F4875 #752F6B #755C2F #2F7539
square
#2F4875 #752F6B #755C2F #2F7539
split-complementary
#2F4875 #75392F #6B752F
monochromatic
#0C121E #1D2D49 #2F4875 #4163A1 #5F82BF

Accessibility & contrast

On white

9.11
#2F4875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F4875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4875
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4875#FFFFFF#000000##FFFFFF
##2F48751.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354C77
Deuteranopia (green-blind)
#2C4574
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4875;
/* rgb */ color: rgb(47, 72, 117);
/* oklch */ color: oklch(40.4% 0.082 261.4);
Tailwind
colors: {
  custom: {
    50: '#6e7a9d',
    500: '#2f4875',
    950: '#000000',
  },
}
SCSS
$custom: #2f4875;
$custom-light: #6e7a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4875",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 218.571,
    "s": 42.683,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40414,
    "c": 0.08221,
    "h": 261.4
  },
  "luminance": 0.06523
}

Semantic roles & 50–950 ramp

primary
#2F4875
secondary
#A68B5A
accent
#A655D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2F4875

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

Preview Lab → · Contrast checker → · Palette generator →

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