#2F4AAB#2F4AAB

#2F4AAB is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.8% C 0.159 H 267.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2F4AAB
RGBrgb(47, 74, 171)
HSLhsl(227, 57%, 43%)
HSVhsv(227, 73%, 67%)
CMYKcmyk(72.5%, 56.7%, 0%, 32.9%)
CIE-LABlab(34.88, 24.10, -54.99)
CIE-LCHlch(34.88, 60.04, 293.67°)
OKLaboklab(44.77% -0.0064 -0.1585)
OKLCHoklch(44.77% 0.159 267.7)
XYZxyz(10.9692, 8.4410, 39.5714)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AAB #AB902F
analogous
#2F88AB #2F4AAB #522FAB
triadic
#2F4AAB #AB2F4A #4AAB2F
tetradic
#2F4AAB #AB2F88 #AB902F #2FAB52
square
#2F4AAB #AB2F88 #AB902F #2FAB52
split-complementary
#2F4AAB #AB522F #88AB2F
monochromatic
#15204B #22357B #2F4AAB #4A67CD #7A8FDA

Accessibility & contrast

On white

7.81
#2F4AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F4AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AAB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AAB#FFFFFF#000000##FFFFFF
##2F4AAB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f4aab;
/* rgb */ color: rgb(47, 74, 171);
/* oklch */ color: oklch(44.8% 0.159 267.7);
Tailwind
colors: {
  custom: {
    50: '#787cc5',
    500: '#2f4aab',
    950: '#000000',
  },
}
SCSS
$custom: #2f4aab;
$custom-light: #787cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4aab",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 171
  },
  "hsl": {
    "h": 226.935,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44768,
    "c": 0.15861,
    "h": 267.7
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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