#2F34A2#2F34A2

#2F34A2 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.173 H 273.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2F34A2
RGBrgb(47, 52, 162)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 64%)
CMYKcmyk(71%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.56, 35.15, -59.92)
CIE-LCHlch(28.56, 69.47, 300.40°)
OKLaboklab(39.86% 0.0101 -0.1731)
OKLCHoklch(39.86% 0.173 273.4)
XYZxyz(8.9197, 5.6681, 34.7994)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F34A2 #A29D2F
analogous
#2F6DA2 #2F34A2 #632FA2
triadic
#2F34A2 #A22F34 #34A22F
tetradic
#2F34A2 #A22F6D #A29D2F #2FA263
square
#2F34A2 #A22F6D #A29D2F #2FA263
split-complementary
#2F34A2 #A2632F #6DA22F
monochromatic
#131643 #212573 #2F34A2 #454BC9 #7579D7

Accessibility & contrast

On white

9.84
#2F34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F34A2
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F34A2#FFFFFF#000000##FFFFFF
##2F34A21.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f34a2;
/* rgb */ color: rgb(47, 52, 162);
/* oklch */ color: oklch(39.9% 0.173 273.4);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2f34a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f34a2;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f34a2",
  "rgb": {
    "r": 47,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 237.391,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.17343,
    "h": 273.4
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#2F34A2
secondary
#BFBB6E
accent
#D849DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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