#2F418A#2F418A

#2F418A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.123 H 269.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2F418A
RGBrgb(47, 65, 138)
HSLhsl(228, 49%, 36%)
HSVhsv(228, 66%, 54%)
CMYKcmyk(65.9%, 52.9%, 0%, 45.9%)
CIE-LABlab(29.96, 17.77, -42.96)
CIE-LCHlch(29.96, 46.49, 292.47°)
OKLaboklab(40.28% -0.0006 -0.1232)
OKLCHoklch(40.28% 0.123 269.7)
XYZxyz(7.6485, 6.2192, 24.8372)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418A #8A782F
analogous
#2F6F8A #2F418A #4B2F8A
triadic
#2F418A #8A2F41 #418A2F
tetradic
#2F418A #8A2F6F #8A782F #2F8A4B
square
#2F418A #8A2F6F #8A782F #2F8A4B
split-complementary
#2F418A #8A4B2F #6F8A2F
monochromatic
#10162F #1F2B5C #2F418A #3F57B8 #687CCC

Accessibility & contrast

On white

9.36
#2F418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F418A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418A
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418A#FFFFFF#000000##FFFFFF
##2F418A1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f418a;
/* rgb */ color: rgb(47, 65, 138);
/* oklch */ color: oklch(40.3% 0.123 269.7);
Tailwind
colors: {
  custom: {
    50: '#7275ad',
    500: '#2f418a',
    950: '#000000',
  },
}
SCSS
$custom: #2f418a;
$custom-light: #7275ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418a",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 228.132,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40282,
    "c": 0.12322,
    "h": 269.7
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#2F418A
secondary
#B3A362
accent
#BE4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F418A

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

Preview Lab → · Contrast checker → · Palette generator →

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