#2D228C#2D228C

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

Color values

HEX#2D228C
RGBrgb(45, 34, 140)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(67.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.28, 38.25, -56.73)
CIE-LCHlch(22.28, 68.42, 303.99°)
OKLaboklab(34.66% 0.023 -0.1638)
OKLCHoklch(34.66% 0.165 278)
XYZxyz(6.3863, 3.5949, 25.1632)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D228C #818C22
analogous
#224C8C #2D228C #62228C
triadic
#2D228C #8C2D22 #228C2D
tetradic
#2D228C #8C224C #818C22 #228C62
square
#2D228C #8C224C #818C22 #228C62
split-complementary
#2D228C #8C6222 #4C8C22
monochromatic
#0D0A2A #1D165B #2D228C #3D2EBD #6153D5

Accessibility & contrast

On white

12.22
#2D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D228C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D228C#FFFFFF#000000##FFFFFF
##2D228C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d228c;
/* rgb */ color: rgb(45, 34, 140);
/* oklch */ color: oklch(34.7% 0.165 278.0);
Tailwind
colors: {
  custom: {
    50: '#745faf',
    500: '#2d228c',
    950: '#000000',
  },
}
SCSS
$custom: #2d228c;
$custom-light: #745faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d228c",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 246.226,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34664,
    "c": 0.16544,
    "h": 278
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#2D228C
secondary
#AEB951
accent
#E444D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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