#2242A0#2242A0

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

Color values

HEX#2242A0
RGBrgb(34, 66, 160)
HSLhsl(225, 65%, 38%)
HSVhsv(225, 79%, 63%)
CMYKcmyk(78.8%, 58.8%, 0%, 37.3%)
CIE-LABlab(31.29, 23.66, -54.27)
CIE-LCHlch(31.29, 59.21, 293.56°)
OKLaboklab(41.64% -0.0122 -0.1567)
OKLCHoklch(41.64% 0.157 265.6)
XYZxyz(8.9508, 6.7736, 34.0866)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A0 #A08022
analogous
#2281A0 #2242A0 #4122A0
triadic
#2242A0 #A02242 #42A022
tetradic
#2242A0 #A02281 #A08022 #22A041
square
#2242A0 #A02281 #A08022 #22A041
split-complementary
#2242A0 #A04122 #81A022
monochromatic
#0D183B #172D6E #2242A0 #2D57D2 #5F7FDD

Accessibility & contrast

On white

8.92
#2242A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2242A0
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A0#FFFFFF#000000##FFFFFF
##2242A01.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005A6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2242a0;
/* rgb */ color: rgb(34, 66, 160);
/* oklch */ color: oklch(41.6% 0.157 265.6);
Tailwind
colors: {
  custom: {
    50: '#7275bd',
    500: '#2242a0',
    950: '#000000',
  },
}
SCSS
$custom: #2242a0;
$custom-light: #7275bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a0",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 224.762,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41639,
    "c": 0.15721,
    "h": 265.6
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#2242A0
secondary
#C2A85C
accent
#BD40E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2242A0

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

Preview Lab → · Contrast checker → · Palette generator →

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