#2251CA#2251CA

#2251CA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.195 H 264.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2251CA
RGBrgb(34, 81, 202)
HSLhsl(223, 71%, 46%)
HSVhsv(223, 83%, 79%)
CMYKcmyk(83.2%, 59.9%, 0%, 20.8%)
CIE-LABlab(38.70, 29.89, -67.00)
CIE-LCHlch(38.70, 73.37, 294.04°)
OKLaboklab(48.26% -0.0199 -0.1939)
OKLCHoklch(48.26% 0.195 264.1)
XYZxyz(14.2590, 10.4875, 57.1384)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251CA #CA9B22
analogous
#22A5CA #2251CA #4722CA
triadic
#2251CA #CA2251 #51CA22
tetradic
#2251CA #CA22A5 #CA9B22 #22CA47
square
#2251CA #CA22A5 #CA9B22 #22CA47
split-complementary
#2251CA #CA4722 #A5CA22
monochromatic
#102761 #193C96 #2251CA #4973E0 #7D9BE9

Accessibility & contrast

On white

6.78
#2251CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2251CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2251CA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251CA#FFFFFF#000000##FFFFFF
##2251CA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2251ca;
/* rgb */ color: rgb(34, 81, 202);
/* oklch */ color: oklch(48.3% 0.195 264.1);
Tailwind
colors: {
  custom: {
    50: '#7b81db',
    500: '#2251ca',
    950: '#000000',
  },
}
SCSS
$custom: #2251ca;
$custom-light: #7b81db;
$custom-dark: #000000;
JSON
{
  "hex": "#2251ca",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 223.214,
    "s": 71.186,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48261,
    "c": 0.19488,
    "h": 264.1
  },
  "luminance": 0.10489
}

Semantic roles & 50–950 ramp

primary
#2251CA
secondary
#D1B877
accent
#BC3AEE
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2251CA

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

Preview Lab → · Contrast checker → · Palette generator →

#2251CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva