#2F54AF#2F54AF

#2F54AF is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.1% C 0.152 H 264.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2F54AF
RGBrgb(47, 84, 175)
HSLhsl(223, 58%, 44%)
HSVhsv(223, 73%, 69%)
CMYKcmyk(73.1%, 52%, 0%, 31.4%)
CIE-LABlab(37.91, 18.99, -52.46)
CIE-LCHlch(37.91, 55.80, 289.90°)
OKLaboklab(47.15% -0.0143 -0.1509)
OKLCHoklch(47.15% 0.152 264.6)
XYZxyz(12.0777, 10.0388, 41.8503)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F54AF #AF8A2F
analogous
#2F94AF #2F54AF #4A2FAF
triadic
#2F54AF #AF2F54 #54AF2F
tetradic
#2F54AF #AF2F94 #AF8A2F #2FAF4A
square
#2F54AF #AF2F94 #AF8A2F #2FAF4A
split-complementary
#2F54AF #AF4A2F #94AF2F
monochromatic
#15264F #223D7F #2F54AF #4C72CF #7C98DC

Accessibility & contrast

On white

6.98
#2F54AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2F54AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F54AF
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F54AF#FFFFFF#000000##FFFFFF
##2F54AF1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195FB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f54af;
/* rgb */ color: rgb(47, 84, 175);
/* oklch */ color: oklch(47.1% 0.152 264.6);
Tailwind
colors: {
  custom: {
    50: '#7983c7',
    500: '#2f54af',
    950: '#000000',
  },
}
SCSS
$custom: #2f54af;
$custom-light: #7983c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f54af",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 222.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.15156,
    "h": 264.6
  },
  "luminance": 0.1004
}

Semantic roles & 50–950 ramp

primary
#2F54AF
secondary
#C4AE75
accent
#B447E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F54AF

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

Preview Lab → · Contrast checker → · Palette generator →

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