#2F4AAA#2F4AAA

#2F4AAA is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.157 H 267.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2F4AAA
RGBrgb(47, 74, 170)
HSLhsl(227, 57%, 43%)
HSVhsv(227, 72%, 67%)
CMYKcmyk(72.4%, 56.5%, 0%, 33.3%)
CIE-LABlab(34.81, 23.73, -54.52)
CIE-LCHlch(34.81, 59.46, 293.52°)
OKLaboklab(44.69% -0.0065 -0.1571)
OKLCHoklch(44.69% 0.157 267.6)
XYZxyz(10.8743, 8.4031, 39.0713)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AAA #AA8F2F
analogous
#2F88AA #2F4AAA #512FAA
triadic
#2F4AAA #AA2F4A #4AAA2F
tetradic
#2F4AAA #AA2F88 #AA8F2F #2FAA51
square
#2F4AAA #AA2F88 #AA8F2F #2FAA51
split-complementary
#2F4AAA #AA512F #88AA2F
monochromatic
#14204A #22357A #2F4AAA #4966CD #798FDA

Accessibility & contrast

On white

7.83
#2F4AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F4AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AAA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AAA#FFFFFF#000000##FFFFFF
##2F4AAA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4aaa;
/* rgb */ color: rgb(47, 74, 170);
/* oklch */ color: oklch(44.7% 0.157 267.6);
Tailwind
colors: {
  custom: {
    50: '#787cc4',
    500: '#2f4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aaa;
$custom-light: #787cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aaa",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 226.829,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44687,
    "c": 0.15722,
    "h": 267.6
  },
  "luminance": 0.08404
}

Semantic roles & 50–950 ramp

primary
#2F4AAA
secondary
#C2B172
accent
#BF48E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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