#2F418E#2F418E

#2F418E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.129 H 269.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2F418E
RGBrgb(47, 65, 142)
HSLhsl(229, 50%, 37%)
HSVhsv(229, 67%, 56%)
CMYKcmyk(66.9%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.25, 19.26, -44.96)
CIE-LCHlch(30.25, 48.91, 293.19°)
OKLaboklab(40.59% -0.0003 -0.1291)
OKLCHoklch(40.59% 0.129 269.9)
XYZxyz(7.9434, 6.3372, 26.3905)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418E #8E7C2F
analogous
#2F718E #2F418E #4D2F8E
triadic
#2F418E #8E2F41 #418E2F
tetradic
#2F418E #8E2F71 #8E7C2F #2F8E4D
square
#2F418E #8E2F71 #8E7C2F #2F8E4D
split-complementary
#2F418E #8E4D2F #718E2F
monochromatic
#111732 #202C60 #2F418E #3E56BC #6A7DCE

Accessibility & contrast

On white

9.26
#2F418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418E#FFFFFF#000000##FFFFFF
##2F418E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f418e;
/* rgb */ color: rgb(47, 65, 142);
/* oklch */ color: oklch(40.6% 0.129 269.9);
Tailwind
colors: {
  custom: {
    50: '#7375b0',
    500: '#2f418e',
    950: '#000000',
  },
}
SCSS
$custom: #2f418e;
$custom-light: #7375b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418e",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 228.632,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40592,
    "c": 0.1291,
    "h": 269.9
  },
  "luminance": 0.06338
}

Semantic roles & 50–950 ramp

primary
#2F418E
secondary
#B5A564
accent
#BF4EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F418E

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

Preview Lab → · Contrast checker → · Palette generator →

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