#2F48A5#2F48A5

#2F48A5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.153 H 268.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2F48A5
RGBrgb(47, 72, 165)
HSLhsl(227, 56%, 42%)
HSVhsv(227, 72%, 65%)
CMYKcmyk(71.5%, 56.4%, 0%, 35.3%)
CIE-LABlab(33.89, 23.18, -53.03)
CIE-LCHlch(33.89, 57.87, 293.61°)
OKLaboklab(43.88% -0.0051 -0.1527)
OKLCHoklch(43.88% 0.153 268.1)
XYZxyz(10.2788, 7.9546, 36.5837)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A5 #A58C2F
analogous
#2F83A5 #2F48A5 #512FA5
triadic
#2F48A5 #A52F48 #48A52F
tetradic
#2F48A5 #A52F83 #A58C2F #2FA551
square
#2F48A5 #A52F83 #A58C2F #2FA551
split-complementary
#2F48A5 #A5512F #83A52F
monochromatic
#141E46 #213375 #2F48A5 #4763CB #768BD8

Accessibility & contrast

On white

8.10
#2F48A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2F48A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48A5
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A5#FFFFFF#000000##FFFFFF
##2F48A51.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#005F6F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f48a5;
/* rgb */ color: rgb(47, 72, 165);
/* oklch */ color: oklch(43.9% 0.153 268.1);
Tailwind
colors: {
  custom: {
    50: '#777ac0',
    500: '#2f48a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a5;
$custom-light: #777ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a5",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 165
  },
  "hsl": {
    "h": 227.288,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43875,
    "c": 0.1528,
    "h": 268.1
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#2F48A5
secondary
#C0AF70
accent
#BF49DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F48A5

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

Preview Lab → · Contrast checker → · Palette generator →

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