#2F4086#2F4086

#2F4086 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.8% C 0.119 H 270.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2F4086
RGBrgb(47, 64, 134)
HSLhsl(228, 48%, 35%)
HSVhsv(228, 65%, 53%)
CMYKcmyk(64.9%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.39, 16.95, -41.40)
CIE-LCHlch(29.39, 44.74, 292.27°)
OKLaboklab(39.76% 0 -0.1186)
OKLCHoklch(39.76% 0.119 270)
XYZxyz(7.3073, 5.9917, 23.3211)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4086 #86752F
analogous
#2F6B86 #2F4086 #492F86
triadic
#2F4086 #862F40 #40862F
tetradic
#2F4086 #862F6B #86752F #2F8649
square
#2F4086 #862F6B #86752F #2F8649
split-complementary
#2F4086 #86492F #6B862F
monochromatic
#0F152B #1F2A59 #2F4086 #3F56B3 #6679C9

Accessibility & contrast

On white

9.55
#2F4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4086
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4086#FFFFFF#000000##FFFFFF
##2F40861.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194989
Deuteranopia (green-blind)
#014285
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f4086;
/* rgb */ color: rgb(47, 64, 134);
/* oklch */ color: oklch(39.8% 0.119 270.0);
Tailwind
colors: {
  custom: {
    50: '#7174aa',
    500: '#2f4086',
    950: '#000000',
  },
}
SCSS
$custom: #2f4086;
$custom-light: #7174aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4086",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 228.276,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.11864,
    "h": 270
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#2F4086
secondary
#B0A160
accent
#BD50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2F4086

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

Preview Lab → · Contrast checker → · Palette generator →

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