#2F417C#2F417C

#2F417C is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.102 H 268.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2F417C
RGBrgb(47, 65, 124)
HSLhsl(226, 45%, 34%)
HSVhsv(226, 62%, 49%)
CMYKcmyk(62.1%, 47.6%, 0%, 51.4%)
CIE-LABlab(29.00, 12.56, -35.79)
CIE-LCHlch(29.00, 37.93, 289.33°)
OKLaboklab(39.25% -0.0025 -0.1021)
OKLCHoklch(39.25% 0.102 268.6)
XYZxyz(6.6995, 5.8396, 19.8390)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F417C #7C6A2F
analogous
#2F677C #2F417C #432F7C
triadic
#2F417C #7C2F41 #417C2F
tetradic
#2F417C #7C2F67 #7C6A2F #2F7C43
square
#2F417C #7C2F67 #7C6A2F #2F7C43
split-complementary
#2F417C #7C432F #677C2F
monochromatic
#0D1223 #1E2A50 #2F417C #4058A8 #6279C3

Accessibility & contrast

On white

9.69
#2F417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F417C
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F417C#FFFFFF#000000##FFFFFF
##2F417C1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487E
Deuteranopia (green-blind)
#19417B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f417c;
/* rgb */ color: rgb(47, 65, 124);
/* oklch */ color: oklch(39.2% 0.102 268.6);
Tailwind
colors: {
  custom: {
    50: '#6f75a2',
    500: '#2f417c',
    950: '#000000',
  },
}
SCSS
$custom: #2f417c;
$custom-light: #6f75a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f417c",
  "rgb": {
    "r": 47,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 225.974,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39249,
    "c": 0.10216,
    "h": 268.6
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#2F417C
secondary
#AA985C
accent
#B653D5
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F417C

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

Preview Lab → · Contrast checker → · Palette generator →

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