#2F4096#2F4096

#2F4096 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.142 H 270.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2F4096
RGBrgb(47, 64, 150)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 69%, 59%)
CMYKcmyk(68.7%, 57.3%, 0%, 41.2%)
CIE-LABlab(30.57, 22.92, -49.33)
CIE-LCHlch(30.57, 54.40, 294.92°)
OKLaboklab(41.03% 0.0011 -0.142)
OKLCHoklch(41.03% 0.142 270.4)
XYZxyz(8.5088, 6.4723, 29.6491)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4096 #96852F
analogous
#2F7396 #2F4096 #512F96
triadic
#2F4096 #962F40 #40962F
tetradic
#2F4096 #962F73 #96852F #2F9651
square
#2F4096 #962F73 #96852F #2F9651
split-complementary
#2F4096 #96512F #73962F
monochromatic
#121839 #202C67 #2F4096 #3F55C3 #6E7ED2

Accessibility & contrast

On white

9.15
#2F4096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F4096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4096
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4096#FFFFFF#000000##FFFFFF
##2F40961.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f4096;
/* rgb */ color: rgb(47, 64, 150);
/* oklch */ color: oklch(41.0% 0.142 270.4);
Tailwind
colors: {
  custom: {
    50: '#7474b6',
    500: '#2f4096',
    950: '#000000',
  },
}
SCSS
$custom: #2f4096;
$custom-light: #7474b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4096",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 150
  },
  "hsl": {
    "h": 230.097,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41027,
    "c": 0.14197,
    "h": 270.4
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#2F4096
secondary
#B9AC68
accent
#C44CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F4096

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

Preview Lab → · Contrast checker → · Palette generator →

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