#2F4586#2F4586

#2F4586 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.9% C 0.112 H 267.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2F4586
RGBrgb(47, 69, 134)
HSLhsl(225, 48%, 35%)
HSVhsv(225, 65%, 53%)
CMYKcmyk(64.9%, 48.5%, 0%, 47.5%)
CIE-LABlab(30.83, 13.56, -39.08)
CIE-LCHlch(30.83, 41.37, 289.13°)
OKLaboklab(40.86% -0.0053 -0.1117)
OKLCHoklch(40.86% 0.112 267.3)
XYZxyz(7.6020, 6.5811, 23.4193)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4586 #86702F
analogous
#2F7086 #2F4586 #452F86
triadic
#2F4586 #862F45 #45862F
tetradic
#2F4586 #862F70 #86702F #2F8645
square
#2F4586 #862F70 #86702F #2F8645
split-complementary
#2F4586 #86452F #70862F
monochromatic
#0F162B #1F2E59 #2F4586 #3F5CB3 #667FC9

Accessibility & contrast

On white

9.07
#2F4586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F4586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4586
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4586#FFFFFF#000000##FFFFFF
##2F45861.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D88
Deuteranopia (green-blind)
#154585
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f4586;
/* rgb */ color: rgb(47, 69, 134);
/* oklch */ color: oklch(40.9% 0.112 267.3);
Tailwind
colors: {
  custom: {
    50: '#7178aa',
    500: '#2f4586',
    950: '#000000',
  },
}
SCSS
$custom: #2f4586;
$custom-light: #7178aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4586",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 134
  },
  "hsl": {
    "h": 224.828,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40858,
    "c": 0.11188,
    "h": 267.3
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#2F4586
secondary
#B09C60
accent
#B550D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4586

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

Preview Lab → · Contrast checker → · Palette generator →

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