#2F418C#2F418C

#2F418C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.126 H 269.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2F418C
RGBrgb(47, 65, 140)
HSLhsl(228, 50%, 37%)
HSVhsv(228, 66%, 55%)
CMYKcmyk(66.4%, 53.6%, 0%, 45.1%)
CIE-LABlab(30.10, 18.51, -43.96)
CIE-LCHlch(30.10, 47.70, 292.84°)
OKLaboklab(40.44% -0.0005 -0.1262)
OKLCHoklch(40.44% 0.126 269.8)
XYZxyz(7.7946, 6.2777, 25.6068)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F418C #8C7A2F
analogous
#2F708C #2F418C #4C2F8C
triadic
#2F418C #8C2F41 #418C2F
tetradic
#2F418C #8C2F70 #8C7A2F #2F8C4C
square
#2F418C #8C2F70 #8C7A2F #2F8C4C
split-complementary
#2F418C #8C4C2F #708C2F
monochromatic
#101630 #202C5E #2F418C #3E56BA #697CCD

Accessibility & contrast

On white

9.31
#2F418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2F418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F418C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F418C#FFFFFF#000000##FFFFFF
##2F418C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f418c;
/* rgb */ color: rgb(47, 65, 140);
/* oklch */ color: oklch(40.4% 0.126 269.8);
Tailwind
colors: {
  custom: {
    50: '#7275ae',
    500: '#2f418c',
    950: '#000000',
  },
}
SCSS
$custom: #2f418c;
$custom-light: #7275ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f418c",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 228.387,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40436,
    "c": 0.12617,
    "h": 269.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F418C

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

Preview Lab → · Contrast checker → · Palette generator →

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