#2F5FA1#2F5FA1

#2F5FA1 is a mid, moderate cyan. Relative luminance 0.114; OKLCH L 48.6% C 0.119 H 257.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA1
RGBrgb(47, 95, 161)
HSLhsl(215, 55%, 41%)
HSVhsv(215, 71%, 63%)
CMYKcmyk(70.8%, 41%, 0%, 36.9%)
CIE-LABlab(40.18, 6.53, -40.51)
CIE-LCHlch(40.18, 41.04, 279.16°)
OKLaboklab(48.6% -0.0267 -0.1155)
OKLCHoklch(48.6% 0.119 257)
XYZxyz(11.6952, 11.3607, 35.2878)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA1 #A1712F
analogous
#2F98A1 #2F5FA1 #382FA1
triadic
#2F5FA1 #A12F5F #5FA12F
tetradic
#2F5FA1 #A12F98 #A1712F #2FA138
square
#2F5FA1 #A12F98 #A1712F #2FA138
split-complementary
#2F5FA1 #A1382F #98A12F
monochromatic
#132742 #214372 #2F5FA1 #457CC9 #749DD6

Accessibility & contrast

On white

6.42
#2F5FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F5FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA1#FFFFFF#000000##FFFFFF
##2F5FA11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4064A4
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5fa1;
/* rgb */ color: rgb(47, 95, 161);
/* oklch */ color: oklch(48.6% 0.119 257.0);
Tailwind
colors: {
  custom: {
    50: '#758cbd',
    500: '#2f5fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa1;
$custom-light: #758cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa1",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 214.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48603,
    "c": 0.1186,
    "h": 257
  },
  "luminance": 0.11362
}

Semantic roles & 50–950 ramp

primary
#2F5FA1
secondary
#BE9C6E
accent
#A04ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2F5FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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