#2F408C#2F408C

#2F408C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.128 H 270.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2F408C
RGBrgb(47, 64, 140)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 66%, 55%)
CMYKcmyk(66.4%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.82, 19.19, -44.42)
CIE-LCHlch(29.82, 48.39, 293.37°)
OKLaboklab(40.22% 0.0005 -0.1275)
OKLCHoklch(40.22% 0.128 270.2)
XYZxyz(7.7377, 6.1639, 25.5878)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F408C #8C7B2F
analogous
#2F6F8C #2F408C #4D2F8C
triadic
#2F408C #8C2F40 #408C2F
tetradic
#2F408C #8C2F6F #8C7B2F #2F8C4D
square
#2F408C #8C2F6F #8C7B2F #2F8C4D
split-complementary
#2F408C #8C4D2F #6F8C2F
monochromatic
#101630 #202B5E #2F408C #3E55BA #697BCD

Accessibility & contrast

On white

9.40
#2F408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F408C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F408C#FFFFFF#000000##FFFFFF
##2F408C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f408c;
/* rgb */ color: rgb(47, 64, 140);
/* oklch */ color: oklch(40.2% 0.128 270.2);
Tailwind
colors: {
  custom: {
    50: '#7274ae',
    500: '#2f408c',
    950: '#000000',
  },
}
SCSS
$custom: #2f408c;
$custom-light: #7274ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f408c",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 229.032,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.12751,
    "h": 270.2
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#2F408C
secondary
#B4A563
accent
#C04FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F408C

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

Preview Lab → · Contrast checker → · Palette generator →

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