#2F5EAF#2F5EAF

#2F5EAF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.139 H 260.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2F5EAF
RGBrgb(47, 94, 175)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(73.1%, 46.3%, 0%, 31.4%)
CIE-LABlab(40.74, 12.45, -47.91)
CIE-LCHlch(40.74, 49.50, 284.56°)
OKLaboklab(49.31% -0.023 -0.1373)
OKLCHoklch(49.31% 0.139 260.5)
XYZxyz(12.9101, 11.7035, 42.1277)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EAF #AF802F
analogous
#2F9EAF #2F5EAF #402FAF
triadic
#2F5EAF #AF2F5E #5EAF2F
tetradic
#2F5EAF #AF2F9E #AF802F #2FAF40
square
#2F5EAF #AF2F9E #AF802F #2FAF40
split-complementary
#2F5EAF #AF402F #9EAF2F
monochromatic
#152A4F #22447F #2F5EAF #4C7CCF #7CA0DC

Accessibility & contrast

On white

6.29
#2F5EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2F5EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EAF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EAF#FFFFFF#000000##FFFFFF
##2F5EAF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3466B2
Deuteranopia (green-blind)
#185BAD
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5eaf;
/* rgb */ color: rgb(47, 94, 175);
/* oklch */ color: oklch(49.3% 0.139 260.5);
Tailwind
colors: {
  custom: {
    50: '#788bc7',
    500: '#2f5eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eaf;
$custom-light: #788bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eaf",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 217.969,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49311,
    "c": 0.1392,
    "h": 260.5
  },
  "luminance": 0.11705
}

Semantic roles & 50–950 ramp

primary
#2F5EAF
secondary
#C4A775
accent
#A847E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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