#2F34AB#2F34AB

#2F34AB is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.185 H 272.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2F34AB
RGBrgb(47, 52, 171)
HSLhsl(238, 57%, 43%)
HSVhsv(238, 73%, 67%)
CMYKcmyk(72.5%, 69.6%, 0%, 32.9%)
CIE-LABlab(29.41, 38.31, -63.94)
CIE-LCHlch(29.41, 74.54, 300.93°)
OKLaboklab(40.74% 0.0091 -0.1849)
OKLCHoklch(40.74% 0.185 272.8)
XYZxyz(9.7485, 5.9996, 39.1645)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34AB #ABA62F
analogous
#2F72AB #2F34AB #682FAB
triadic
#2F34AB #AB2F34 #34AB2F
tetradic
#2F34AB #AB2F72 #ABA62F #2FAB68
square
#2F34AB #AB2F72 #ABA62F #2FAB68
split-complementary
#2F34AB #AB682F #72AB2F
monochromatic
#15174B #22257B #2F34AB #4A4FCD #7A7EDA

Accessibility & contrast

On white

9.54
#2F34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34AB
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34AB#FFFFFF#000000##FFFFFF
##2F34AB1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f34ab;
/* rgb */ color: rgb(47, 52, 171);
/* oklch */ color: oklch(40.7% 0.185 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a6cc5',
    500: '#2f34ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f34ab;
$custom-light: #7a6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34ab",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 237.581,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.18512,
    "h": 272.8
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#2F34AB
secondary
#C3C073
accent
#DA48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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