#2F3EAB#2F3EAB

#2F3EAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.173 H 270.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2F3EAB
RGBrgb(47, 62, 171)
HSLhsl(233, 57%, 43%)
HSVhsv(233, 73%, 67%)
CMYKcmyk(72.5%, 63.7%, 0%, 32.9%)
CIE-LABlab(31.78, 31.99, -60.05)
CIE-LCHlch(31.78, 68.04, 298.04°)
OKLaboklab(42.46% 0.0026 -0.1735)
OKLCHoklch(42.46% 0.174 270.9)
XYZxyz(10.2431, 6.9888, 39.3293)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3EAB #AB9C2F
analogous
#2F7CAB #2F3EAB #5E2FAB
triadic
#2F3EAB #AB2F3E #3EAB2F
tetradic
#2F3EAB #AB2F7C #AB9C2F #2FAB5E
square
#2F3EAB #AB2F7C #AB9C2F #2FAB5E
split-complementary
#2F3EAB #AB5E2F #7CAB2F
monochromatic
#151B4B #222D7B #2F3EAB #4A5ACD #7A86DA

Accessibility & contrast

On white

8.76
#2F3EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2F3EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3EAB
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3EAB#FFFFFF#000000##FFFFFF
##2F3EAB1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f3eab;
/* rgb */ color: rgb(47, 62, 171);
/* oklch */ color: oklch(42.5% 0.173 270.9);
Tailwind
colors: {
  custom: {
    50: '#7973c5',
    500: '#2f3eab',
    950: '#000000',
  },
}
SCSS
$custom: #2f3eab;
$custom-light: #7973c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3eab",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 232.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.1735,
    "h": 270.9
  },
  "luminance": 0.0699
}

Semantic roles & 50–950 ramp

primary
#2F3EAB
secondary
#C3B973
accent
#CE48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F3EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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