#2D228F#2D228F

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

Color values

HEX#2D228F
RGBrgb(45, 34, 143)
HSLhsl(246, 62%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(68.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.60, 39.24, -58.07)
CIE-LCHlch(22.60, 70.09, 304.05°)
OKLaboklab(34.98% 0.0223 -0.1678)
OKLCHoklch(34.98% 0.169 277.6)
XYZxyz(6.6105, 3.6845, 26.3441)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D228F #848F22
analogous
#224E8F #2D228F #64228F
triadic
#2D228F #8F2D22 #228F2D
tetradic
#2D228F #8F224E #848F22 #228F64
square
#2D228F #8F224E #848F22 #228F64
split-complementary
#2D228F #8F6422 #4E8F22
monochromatic
#0E0A2C #1D165E #2D228F #3D2EC0 #6255D7

Accessibility & contrast

On white

12.09
#2D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D228F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D228F#FFFFFF#000000##FFFFFF
##2D228F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d228f;
/* rgb */ color: rgb(45, 34, 143);
/* oklch */ color: oklch(35.0% 0.169 277.6);
Tailwind
colors: {
  custom: {
    50: '#755fb1',
    500: '#2d228f',
    950: '#000000',
  },
}
SCSS
$custom: #2d228f;
$custom-light: #755fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d228f",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 246.055,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34981,
    "c": 0.16924,
    "h": 277.6
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#2D228F
secondary
#B0BA52
accent
#E543D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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