#2255B2#2255B2

#2255B2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.158 H 261.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2255B2
RGBrgb(34, 85, 178)
HSLhsl(219, 68%, 42%)
HSVhsv(219, 81%, 70%)
CMYKcmyk(80.9%, 52.2%, 0%, 30.2%)
CIE-LABlab(37.93, 17.96, -54.23)
CIE-LCHlch(37.93, 57.12, 288.32°)
OKLaboklab(47.1% -0.0242 -0.1562)
OKLCHoklch(47.1% 0.158 261.2)
XYZxyz(11.9412, 10.0500, 43.4213)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255B2 #B27F22
analogous
#229DB2 #2255B2 #3722B2
triadic
#2255B2 #B22255 #55B222
tetradic
#2255B2 #B2229D #B27F22 #22B237
square
#2255B2 #B2229D #B27F22 #22B237
split-complementary
#2255B2 #B23722 #9DB222
monochromatic
#0E244B #183C7F #2255B2 #3871D9 #6C96E3

Accessibility & contrast

On white

6.98
#2255B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2255B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2255B2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255B2#FFFFFF#000000##FFFFFF
##2255B21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2255b2;
/* rgb */ color: rgb(34, 85, 178);
/* oklch */ color: oklch(47.1% 0.158 261.2);
Tailwind
colors: {
  custom: {
    50: '#7584ca',
    500: '#2255b2',
    950: '#000000',
  },
}
SCSS
$custom: #2255b2;
$custom-light: #7584ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2255b2",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 218.75,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47098,
    "c": 0.15811,
    "h": 261.2
  },
  "luminance": 0.10051
}

Semantic roles & 50–950 ramp

primary
#2255B2
secondary
#C9A667
accent
#AD3DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2255B2

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

Preview Lab → · Contrast checker → · Palette generator →

#2255B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva