#2256AD#2256AD

#2256AD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.9% C 0.150 H 260.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2256AD
RGBrgb(34, 86, 173)
HSLhsl(218, 67%, 41%)
HSVhsv(218, 80%, 68%)
CMYKcmyk(80.3%, 50.3%, 0%, 32.2%)
CIE-LABlab(37.86, 15.33, -51.38)
CIE-LCHlch(37.86, 53.62, 286.61°)
OKLaboklab(46.93% -0.0256 -0.1479)
OKLCHoklch(46.93% 0.15 260.2)
XYZxyz(11.5276, 10.0114, 40.8519)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256AD #AD7922
analogous
#229BAD #2256AD #3322AD
triadic
#2256AD #AD2256 #56AD22
tetradic
#2256AD #AD229B #AD7922 #22AD33
square
#2256AD #AD229B #AD7922 #22AD33
split-complementary
#2256AD #AD3322 #9BAD22
monochromatic
#0E2347 #183D7A #2256AD #3572D7 #6895E1

Accessibility & contrast

On white

6.99
#2256AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2256AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2256AD
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256AD#FFFFFF#000000##FFFFFF
##2256AD1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B0
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2256ad;
/* rgb */ color: rgb(34, 86, 173);
/* oklch */ color: oklch(46.9% 0.150 260.2);
Tailwind
colors: {
  custom: {
    50: '#7485c6',
    500: '#2256ad',
    950: '#000000',
  },
}
SCSS
$custom: #2256ad;
$custom-light: #7485c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2256ad",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 173
  },
  "hsl": {
    "h": 217.554,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46933,
    "c": 0.15006,
    "h": 260.2
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

primary
#2256AD
secondary
#C7A264
accent
#AA3EEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2256AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2256AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva