#2F409C#2F409C

#2F409C is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.150 H 270.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F409C
RGBrgb(47, 64, 156)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 61%)
CMYKcmyk(69.9%, 59%, 0%, 38.8%)
CIE-LABlab(31.04, 25.15, -52.22)
CIE-LCHlch(31.04, 57.96, 295.72°)
OKLaboklab(41.53% 0.0013 -0.1505)
OKLCHoklch(41.53% 0.15 270.5)
XYZxyz(9.0044, 6.6706, 32.2591)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F409C #9C8B2F
analogous
#2F779C #2F409C #542F9C
triadic
#2F409C #9C2F40 #409C2F
tetradic
#2F409C #9C2F77 #9C8B2F #2F9C54
square
#2F409C #9C2F77 #9C8B2F #2F9C54
split-complementary
#2F409C #9C542F #779C2F
monochromatic
#13193E #212D6D #2F409C #4257C6 #7181D4

Accessibility & contrast

On white

9.00
#2F409C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F409C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F409C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F409C#FFFFFF#000000##FFFFFF
##2F409C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f409c;
/* rgb */ color: rgb(47, 64, 156);
/* oklch */ color: oklch(41.5% 0.150 270.5);
Tailwind
colors: {
  custom: {
    50: '#7674ba',
    500: '#2f409c',
    950: '#000000',
  },
}
SCSS
$custom: #2f409c;
$custom-light: #7674ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f409c",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 230.642,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41527,
    "c": 0.15047,
    "h": 270.5
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#2F409C
secondary
#BCAF6B
accent
#C64BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F409C

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

Preview Lab → · Contrast checker → · Palette generator →

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