#2F5895#2F5895

#2F5895 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.2% C 0.110 H 258.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2F5895
RGBrgb(47, 88, 149)
HSLhsl(216, 52%, 38%)
HSVhsv(216, 68%, 58%)
CMYKcmyk(68.5%, 40.9%, 0%, 41.6%)
CIE-LABlab(37.39, 6.56, -37.76)
CIE-LCHlch(37.39, 38.33, 279.85°)
OKLaboklab(46.21% -0.0224 -0.1076)
OKLCHoklch(46.21% 0.11 258.2)
XYZxyz(10.0849, 9.7527, 29.7789)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5895 #956C2F
analogous
#2F8B95 #2F5895 #392F95
triadic
#2F5895 #952F58 #58952F
tetradic
#2F5895 #952F8B #956C2F #2F9539
square
#2F5895 #952F8B #956C2F #2F9539
split-complementary
#2F5895 #95392F #8B952F
monochromatic
#122138 #203D66 #2F5895 #3F74C2 #6D95D1

Accessibility & contrast

On white

7.12
#2F5895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F5895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5895
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5895#FFFFFF#000000##FFFFFF
##2F58951.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D97
Deuteranopia (green-blind)
#2D5494
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f5895;
/* rgb */ color: rgb(47, 88, 149);
/* oklch */ color: oklch(46.2% 0.110 258.2);
Tailwind
colors: {
  custom: {
    50: '#7386b4',
    500: '#2f5895',
    950: '#000000',
  },
}
SCSS
$custom: #2f5895;
$custom-light: #7386b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5895",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 149
  },
  "hsl": {
    "h": 215.882,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46213,
    "c": 0.10989,
    "h": 258.2
  },
  "luminance": 0.09754
}

Semantic roles & 50–950 ramp

primary
#2F5895
secondary
#B89867
accent
#A24CDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2F5895

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

Preview Lab → · Contrast checker → · Palette generator →

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