#2242FF#2242FF

#2242FF is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.9% C 0.274 H 266.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2242FF
RGBrgb(34, 66, 255)
HSLhsl(231, 100%, 57%)
HSVhsv(231, 87%, 100%)
CMYKcmyk(86.7%, 74.1%, 0%, 0%)
CIE-LABlab(40.33, 57.77, -94.46)
CIE-LCHlch(40.33, 110.72, 301.45°)
OKLaboklab(50.95% -0.0173 -0.2739)
OKLCHoklch(50.95% 0.274 266.4)
XYZxyz(20.6516, 11.4539, 95.7107)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242FF #FFDF22
analogous
#22B1FF #2242FF #7122FF
triadic
#2242FF #FF2242 #42FF22
tetradic
#2242FF #FF22B1 #FFDF22 #22FF71
square
#2242FF #FF22B1 #FFDF22 #22FF71
split-complementary
#2242FF #FF7122 #B1FF22
monochromatic
#0018A7 #0021E4 #2242FF #5F76FF #9CABFF

Accessibility & contrast

On white

6.38
#2242FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2242FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2242FF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242FF#FFFFFF#000000##FFFFFF
##2242FF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AFF
Deuteranopia (green-blind)
#0054FC
Tritanopia (blue-blind)
#007B9E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2242ff;
/* rgb */ color: rgb(34, 66, 255);
/* oklch */ color: oklch(50.9% 0.274 266.4);
Tailwind
colors: {
  custom: {
    50: '#8a78ff',
    500: '#2242ff',
    950: '#000000',
  },
}
SCSS
$custom: #2242ff;
$custom-light: #8a78ff;
$custom-dark: #000000;
JSON
{
  "hex": "#2242ff",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 231.312,
    "s": 100,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.27445,
    "h": 266.4
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#2242FF
secondary
#ECDF91
accent
#E029FF
background
#F9F7FF
surface
#F2EDFF
border
#CCC8D7
text
#0F0918
muted
#7E7B86

Preview Lab

Preview with #2242FF

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

Preview Lab → · Contrast checker → · Palette generator →

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