#2F228F#2F228F

#2F228F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.169 H 278.6°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2F228F
RGBrgb(47, 34, 143)
HSLhsl(247, 62%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(67.1%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.76, 39.48, -57.80)
CIE-LCHlch(22.76, 70.00, 304.33°)
OKLaboklab(35.14% 0.0252 -0.1669)
OKLCHoklch(35.14% 0.169 278.6)
XYZxyz(6.7006, 3.7310, 26.3483)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228F #828F22
analogous
#224C8F #2F228F #66228F
triadic
#2F228F #8F2F22 #228F2F
tetradic
#2F228F #8F224C #828F22 #228F66
square
#2F228F #8F224C #828F22 #228F66
split-complementary
#2F228F #8F6622 #4C8F22
monochromatic
#0E0A2C #1F165E #2F228F #3F2EC0 #6455D7

Accessibility & contrast

On white

12.02
#2F228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F228F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228F#FFFFFF#000000##FFFFFF
##2F228F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f228f;
/* rgb */ color: rgb(47, 34, 143);
/* oklch */ color: oklch(35.1% 0.169 278.6);
Tailwind
colors: {
  custom: {
    50: '#755fb1',
    500: '#2f228f',
    950: '#000000',
  },
}
SCSS
$custom: #2f228f;
$custom-light: #755fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228f",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 247.156,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35137,
    "c": 0.16879,
    "h": 278.6
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#2F228F
secondary
#AEBA52
accent
#E543D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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