#2F228C#2F228C

#2F228C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.165 H 279.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F228C
RGBrgb(47, 34, 140)
HSLhsl(247, 61%, 34%)
HSVhsv(247, 76%, 55%)
CMYKcmyk(66.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.45, 38.50, -56.45)
CIE-LCHlch(22.45, 68.33, 304.29°)
OKLaboklab(34.82% 0.0259 -0.163)
OKLCHoklch(34.82% 0.165 279)
XYZxyz(6.4764, 3.6413, 25.1674)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F228C #7F8C22
analogous
#224A8C #2F228C #64228C
triadic
#2F228C #8C2F22 #228C2F
tetradic
#2F228C #8C224A #7F8C22 #228C64
square
#2F228C #8C224A #7F8C22 #228C64
split-complementary
#2F228C #8C6422 #4A8C22
monochromatic
#0E0A2A #1E165B #2F228C #402EBD #6353D5

Accessibility & contrast

On white

12.15
#2F228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F228C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F228C#FFFFFF#000000##FFFFFF
##2F228C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f228c;
/* rgb */ color: rgb(47, 34, 140);
/* oklch */ color: oklch(34.8% 0.165 279.0);
Tailwind
colors: {
  custom: {
    50: '#755faf',
    500: '#2f228c',
    950: '#000000',
  },
}
SCSS
$custom: #2f228c;
$custom-light: #755faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f228c",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 247.358,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34821,
    "c": 0.16501,
    "h": 279
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#2F228C
secondary
#ACB951
accent
#E444D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F228C

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

Preview Lab → · Contrast checker → · Palette generator →

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