#22338C#22338C

#22338C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.148 H 269.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#22338C
RGBrgb(34, 51, 140)
HSLhsl(230, 61%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(75.7%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.56, 26.10, -51.37)
CIE-LCHlch(25.56, 57.62, 296.93°)
OKLaboklab(36.85% -0.0019 -0.1484)
OKLCHoklch(36.85% 0.148 269.3)
XYZxyz(6.5755, 4.6005, 25.3473)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22338C #8C7B22
analogous
#22688C #22338C #46228C
triadic
#22338C #8C2233 #338C22
tetradic
#22338C #8C2268 #8C7B22 #228C46
square
#22338C #8C2268 #8C7B22 #228C46
split-complementary
#22338C #8C4622 #688C22
monochromatic
#0A0F2A #16215B #22338C #2E45BD #5368D5

Accessibility & contrast

On white

10.94
#22338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#22338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22338C
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22338C#FFFFFF#000000##FFFFFF
##22338C1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22338c;
/* rgb */ color: rgb(34, 51, 140);
/* oklch */ color: oklch(36.9% 0.148 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e6aae',
    500: '#22338c',
    950: '#000000',
  },
}
SCSS
$custom: #22338c;
$custom-light: #6e6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#22338c",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 230.377,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.14843,
    "h": 269.3
  },
  "luminance": 0.04601
}

Semantic roles & 50–950 ramp

primary
#22338C
secondary
#B9A851
accent
#CA44E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #22338C

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

Preview Lab → · Contrast checker → · Palette generator →

#22338C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva