#2255A7#2255A7

#2255A7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.143 H 259.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2255A7
RGBrgb(34, 85, 167)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 80%, 65%)
CMYKcmyk(79.6%, 49.1%, 0%, 34.5%)
CIE-LABlab(37.16, 13.63, -48.95)
CIE-LCHlch(37.16, 50.81, 285.56°)
OKLaboklab(46.26% -0.0257 -0.1407)
OKLCHoklch(46.26% 0.143 259.6)
XYZxyz(10.8807, 9.6258, 37.8362)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255A7 #A77422
analogous
#2298A7 #2255A7 #3122A7
triadic
#2255A7 #A72255 #55A722
tetradic
#2255A7 #A72298 #A77422 #22A731
square
#2255A7 #A72298 #A77422 #22A731
split-complementary
#2255A7 #A73122 #98A722
monochromatic
#0D2141 #183B74 #2255A7 #3170D5 #6493DF

Accessibility & contrast

On white

7.18
#2255A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2255A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2255A7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2255A7#FFFFFF#000000##FFFFFF
##2255A71.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255EAA
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2255a7;
/* rgb */ color: rgb(34, 85, 167);
/* oklch */ color: oklch(46.3% 0.143 259.6);
Tailwind
colors: {
  custom: {
    50: '#7284c2',
    500: '#2255a7',
    950: '#000000',
  },
}
SCSS
$custom: #2255a7;
$custom-light: #7284c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2255a7",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 167
  },
  "hsl": {
    "h": 216.992,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.14305,
    "h": 259.6
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#2255A7
secondary
#C59E60
accent
#A83FE9
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2255A7

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

Preview Lab → · Contrast checker → · Palette generator →

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