#2F418B#2F418B

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

Color values

HEX#2F418B
RGBrgb(47, 65, 139)
HSLhsl(228, 49%, 36%)
HSVhsv(228, 66%, 55%)
CMYKcmyk(66.2%, 53.2%, 0%, 45.5%)
CIE-LABlab(30.03, 18.14, -43.46)
CIE-LCHlch(30.03, 47.10, 292.65°)
OKLaboklab(40.36% -0.0005 -0.1247)
OKLCHoklch(40.36% 0.125 269.7)
XYZxyz(7.7212, 6.2483, 25.2202)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418B #8B792F
analogous
#2F6F8B #2F418B #4B2F8B
triadic
#2F418B #8B2F41 #418B2F
tetradic
#2F418B #8B2F6F #8B792F #2F8B4B
square
#2F418B #8B2F6F #8B792F #2F8B4B
split-complementary
#2F418B #8B4B2F #6F8B2F
monochromatic
#101630 #202C5D #2F418B #3E56B9 #687CCC

Accessibility & contrast

On white

9.33
#2F418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418B#FFFFFF#000000##FFFFFF
##2F418B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f418b;
/* rgb */ color: rgb(47, 65, 139);
/* oklch */ color: oklch(40.4% 0.125 269.7);
Tailwind
colors: {
  custom: {
    50: '#7275ad',
    500: '#2f418b',
    950: '#000000',
  },
}
SCSS
$custom: #2f418b;
$custom-light: #7275ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418b",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 228.261,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.12469,
    "h": 269.7
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F418B

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

Preview Lab → · Contrast checker → · Palette generator →

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