#2F408A#2F408A

#2F408A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.125 H 270.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F408A
RGBrgb(47, 64, 138)
HSLhsl(229, 49%, 36%)
HSVhsv(229, 66%, 54%)
CMYKcmyk(65.9%, 53.6%, 0%, 45.9%)
CIE-LABlab(29.68, 18.45, -43.42)
CIE-LCHlch(29.68, 47.17, 293.02°)
OKLaboklab(40.07% 0.0004 -0.1246)
OKLCHoklch(40.07% 0.125 270.2)
XYZxyz(7.5916, 6.1054, 24.8182)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408A #8A792F
analogous
#2F6E8A #2F408A #4C2F8A
triadic
#2F408A #8A2F40 #408A2F
tetradic
#2F408A #8A2F6E #8A792F #2F8A4C
square
#2F408A #8A2F6E #8A792F #2F8A4C
split-complementary
#2F408A #8A4C2F #6E8A2F
monochromatic
#10162F #1F2B5C #2F408A #3F55B8 #687ACC

Accessibility & contrast

On white

9.45
#2F408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F408A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408A#FFFFFF#000000##FFFFFF
##2F408A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f408a;
/* rgb */ color: rgb(47, 64, 138);
/* oklch */ color: oklch(40.1% 0.125 270.2);
Tailwind
colors: {
  custom: {
    50: '#7274ad',
    500: '#2f408a',
    950: '#000000',
  },
}
SCSS
$custom: #2f408a;
$custom-light: #7274ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408a",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 228.791,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.12457,
    "h": 270.2
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#2F408A
secondary
#B3A462
accent
#BF4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F408A

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

Preview Lab → · Contrast checker → · Palette generator →

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