#2F419C#2F419C

#2F419C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.149 H 270.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2F419C
RGBrgb(47, 65, 156)
HSLhsl(230, 54%, 40%)
HSVhsv(230, 70%, 61%)
CMYKcmyk(69.9%, 58.3%, 0%, 38.8%)
CIE-LABlab(31.31, 24.49, -51.79)
CIE-LCHlch(31.31, 57.28, 295.31°)
OKLaboklab(41.73% 0.0004 -0.1492)
OKLCHoklch(41.73% 0.149 270.2)
XYZxyz(9.0613, 6.7844, 32.2780)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F419C #9C8A2F
analogous
#2F779C #2F419C #542F9C
triadic
#2F419C #9C2F41 #419C2F
tetradic
#2F419C #9C2F77 #9C8A2F #2F9C54
square
#2F419C #9C2F77 #9C8A2F #2F9C54
split-complementary
#2F419C #9C542F #779C2F
monochromatic
#131A3E #212D6D #2F419C #4258C6 #7182D4

Accessibility & contrast

On white

8.91
#2F419C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F419C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F419C
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F419C#FFFFFF#000000##FFFFFF
##2F419C1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f419c;
/* rgb */ color: rgb(47, 65, 156);
/* oklch */ color: oklch(41.7% 0.149 270.2);
Tailwind
colors: {
  custom: {
    50: '#7675ba',
    500: '#2f419c',
    950: '#000000',
  },
}
SCSS
$custom: #2f419c;
$custom-light: #7675ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f419c",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 156
  },
  "hsl": {
    "h": 230.092,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41726,
    "c": 0.14917,
    "h": 270.2
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#2F419C
secondary
#BCAE6B
accent
#C54BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2F419C

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

Preview Lab → · Contrast checker → · Palette generator →

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