#2F5394#2F5394

#2F5394 is a dark, moderate blue. Relative luminance 0.089; OKLCH L 45.0% C 0.114 H 261.2°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2F5394
RGBrgb(47, 83, 148)
HSLhsl(219, 52%, 38%)
HSVhsv(219, 68%, 58%)
CMYKcmyk(68.2%, 43.9%, 0%, 42%)
CIE-LABlab(35.85, 9.45, -39.63)
CIE-LCHlch(35.85, 40.74, 283.42°)
OKLaboklab(44.99% -0.0175 -0.1131)
OKLCHoklch(44.99% 0.114 261.2)
XYZxyz(9.6089, 8.9280, 29.2281)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5394 #94702F
analogous
#2F8594 #2F5394 #3D2F94
triadic
#2F5394 #942F53 #53942F
tetradic
#2F5394 #942F85 #94702F #2F943D
square
#2F5394 #942F85 #94702F #2F943D
split-complementary
#2F5394 #943D2F #85942F
monochromatic
#111F37 #203966 #2F5394 #3E6DC2 #6D90D1

Accessibility & contrast

On white

7.54
#2F5394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F5394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5394
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5394#FFFFFF#000000##FFFFFF
##2F53941.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345997
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5394;
/* rgb */ color: rgb(47, 83, 148);
/* oklch */ color: oklch(45.0% 0.114 261.2);
Tailwind
colors: {
  custom: {
    50: '#7382b4',
    500: '#2f5394',
    950: '#000000',
  },
}
SCSS
$custom: #2f5394;
$custom-light: #7382b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5394",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 148
  },
  "hsl": {
    "h": 218.614,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44994,
    "c": 0.11448,
    "h": 261.2
  },
  "luminance": 0.08929
}

Semantic roles & 50–950 ramp

primary
#2F5394
secondary
#B89B67
accent
#A84DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5394

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

Preview Lab → · Contrast checker → · Palette generator →

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