#2242A1#2242A1

#2242A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 265.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2242A1
RGBrgb(34, 66, 161)
HSLhsl(225, 65%, 38%)
HSVhsv(225, 79%, 63%)
CMYKcmyk(78.9%, 59%, 0%, 36.9%)
CIE-LABlab(31.37, 24.05, -54.74)
CIE-LCHlch(31.37, 59.80, 293.72°)
OKLaboklab(41.73% -0.0121 -0.1581)
OKLCHoklch(41.73% 0.159 265.6)
XYZxyz(9.0387, 6.8087, 34.5491)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A1 #A18122
analogous
#2281A1 #2242A1 #4122A1
triadic
#2242A1 #A12242 #42A122
tetradic
#2242A1 #A12281 #A18122 #22A141
square
#2242A1 #A12281 #A18122 #22A141
split-complementary
#2242A1 #A14122 #81A122
monochromatic
#0D193C #172D6E #2242A1 #2D57D3 #6080DD

Accessibility & contrast

On white

8.89
#2242A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2242A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242A1
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A1#FFFFFF#000000##FFFFFF
##2242A11.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2242a1;
/* rgb */ color: rgb(34, 66, 161);
/* oklch */ color: oklch(41.7% 0.159 265.6);
Tailwind
colors: {
  custom: {
    50: '#7275be',
    500: '#2242a1',
    950: '#000000',
  },
}
SCSS
$custom: #2242a1;
$custom-light: #7275be;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a1",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 224.882,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41725,
    "c": 0.15858,
    "h": 265.6
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#2242A1
secondary
#C2A95D
accent
#BE40E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2242A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2242A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva