#2255AA#2255AA

#2255AA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.5% C 0.147 H 260.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2255AA
RGBrgb(34, 85, 170)
HSLhsl(218, 67%, 40%)
HSVhsv(218, 80%, 67%)
CMYKcmyk(80%, 50%, 0%, 33.3%)
CIE-LABlab(37.37, 14.81, -50.40)
CIE-LCHlch(37.37, 52.53, 286.38°)
OKLaboklab(46.49% -0.0253 -0.145)
OKLCHoklch(46.49% 0.147 260.1)
XYZxyz(11.1612, 9.7380, 39.3138)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2255AA #AA7722
analogous
#2299AA #2255AA #3322AA
triadic
#2255AA #AA2255 #55AA22
tetradic
#2255AA #AA2299 #AA7722 #22AA33
square
#2255AA #AA2299 #AA7722 #22AA33
split-complementary
#2255AA #AA3322 #99AA22
monochromatic
#0E2244 #183B77 #2255AA #3370D6 #6694E0

Accessibility & contrast

On white

7.12
#2255AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2255AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2255AA#FFFFFF#000000##FFFFFF
##2255AA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAD
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2255aa;
/* rgb */ color: rgb(34, 85, 170);
/* oklch */ color: oklch(46.5% 0.147 260.1);
Tailwind
colors: {
  custom: {
    50: '#7384c4',
    500: '#2255aa',
    950: '#000000',
  },
}
SCSS
$custom: #2255aa;
$custom-light: #7384c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2255aa",
  "rgb": {
    "r": 34,
    "g": 85,
    "b": 170
  },
  "hsl": {
    "h": 217.5,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.46488,
    "c": 0.14718,
    "h": 260.1
  },
  "luminance": 0.09739
}

Semantic roles & 50–950 ramp

primary
#2255AA
secondary
#C6A062
accent
#A93EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2255AA

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

Preview Lab → · Contrast checker → · Palette generator →

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