#2F5DB2#2F5DB2

#2F5DB2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.145 H 261.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5DB2
RGBrgb(47, 93, 178)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 74%, 70%)
CMYKcmyk(73.6%, 47.8%, 0%, 30.2%)
CIE-LABlab(40.65, 14.23, -49.82)
CIE-LCHlch(40.65, 51.81, 285.94°)
OKLaboklab(49.3% -0.0216 -0.1429)
OKLCHoklch(49.3% 0.145 261.4)
XYZxyz(13.1196, 11.6460, 43.6673)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DB2 #B2842F
analogous
#2F9FB2 #2F5DB2 #432FB2
triadic
#2F5DB2 #B22F5D #5DB22F
tetradic
#2F5DB2 #B22F9F #B2842F #2FB243
square
#2F5DB2 #B22F9F #B2842F #2FB243
split-complementary
#2F5DB2 #B2432F #9FB22F
monochromatic
#152A51 #224482 #2F5DB2 #4E7CD0 #7EA0DD

Accessibility & contrast

On white

6.31
#2F5DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2F5DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DB2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DB2#FFFFFF#000000##FFFFFF
##2F5DB21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#0A5AB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5db2;
/* rgb */ color: rgb(47, 93, 178);
/* oklch */ color: oklch(49.3% 0.145 261.4);
Tailwind
colors: {
  custom: {
    50: '#798ac9',
    500: '#2f5db2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5db2;
$custom-light: #798ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5db2",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 218.931,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49301,
    "c": 0.14457,
    "h": 261.4
  },
  "luminance": 0.11647
}

Semantic roles & 50–950 ramp

primary
#2F5DB2
secondary
#C6AA77
accent
#AB46E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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