#2F419B#2F419B

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

Color values

HEX#2F419B
RGBrgb(47, 65, 155)
HSLhsl(230, 53%, 40%)
HSVhsv(230, 70%, 61%)
CMYKcmyk(69.7%, 58.1%, 0%, 39.2%)
CIE-LABlab(31.23, 24.11, -51.31)
CIE-LCHlch(31.23, 56.69, 295.17°)
OKLaboklab(41.64% 0.0004 -0.1478)
OKLCHoklch(41.64% 0.148 270.2)
XYZxyz(8.9770, 6.7506, 31.8339)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F419B #9B892F
analogous
#2F779B #2F419B #532F9B
triadic
#2F419B #9B2F41 #419B2F
tetradic
#2F419B #9B2F77 #9B892F #2F9B53
square
#2F419B #9B2F77 #9B892F #2F9B53
split-complementary
#2F419B #9B532F #779B2F
monochromatic
#131A3D #212D6C #2F419B #4258C6 #7181D4

Accessibility & contrast

On white

8.94
#2F419B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F419B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F419B
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F419B#FFFFFF#000000##FFFFFF
##2F419B1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f419b;
/* rgb */ color: rgb(47, 65, 155);
/* oklch */ color: oklch(41.6% 0.148 270.2);
Tailwind
colors: {
  custom: {
    50: '#7575b9',
    500: '#2f419b',
    950: '#000000',
  },
}
SCSS
$custom: #2f419b;
$custom-light: #7575b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f419b",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 155
  },
  "hsl": {
    "h": 230,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41642,
    "c": 0.14777,
    "h": 270.2
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F419B

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

Preview Lab → · Contrast checker → · Palette generator →

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