#2F4795#2F4795

#2F4795 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.131 H 267.6°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2F4795
RGBrgb(47, 71, 149)
HSLhsl(226, 52%, 38%)
HSVhsv(226, 68%, 58%)
CMYKcmyk(68.5%, 52.3%, 0%, 41.6%)
CIE-LABlab(32.44, 17.84, -45.71)
CIE-LCHlch(32.44, 49.07, 291.32°)
OKLaboklab(42.41% -0.0054 -0.1312)
OKLCHoklch(42.41% 0.131 267.6)
XYZxyz(8.8485, 7.2799, 29.3668)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4795 #957D2F
analogous
#2F7A95 #2F4795 #4A2F95
triadic
#2F4795 #952F47 #47952F
tetradic
#2F4795 #952F7A #957D2F #2F954A
square
#2F4795 #952F7A #957D2F #2F954A
split-complementary
#2F4795 #954A2F #7A952F
monochromatic
#121B38 #203166 #2F4795 #3F5EC2 #6D85D1

Accessibility & contrast

On white

8.55
#2F4795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F4795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4795
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4795#FFFFFF#000000##FFFFFF
##2F47951.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185198
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f4795;
/* rgb */ color: rgb(47, 71, 149);
/* oklch */ color: oklch(42.4% 0.131 267.6);
Tailwind
colors: {
  custom: {
    50: '#7479b5',
    500: '#2f4795',
    950: '#000000',
  },
}
SCSS
$custom: #2f4795;
$custom-light: #7479b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4795",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 149
  },
  "hsl": {
    "h": 225.882,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.13132,
    "h": 267.6
  },
  "luminance": 0.07281
}

Semantic roles & 50–950 ramp

primary
#2F4795
secondary
#B8A567
accent
#BA4CDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2F4795

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

Preview Lab → · Contrast checker → · Palette generator →

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