#2256AF#2256AF

#2256AF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.153 H 260.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2256AF
RGBrgb(34, 86, 175)
HSLhsl(218, 67%, 41%)
HSVhsv(218, 81%, 69%)
CMYKcmyk(80.6%, 50.9%, 0%, 31.4%)
CIE-LABlab(38.00, 16.12, -52.34)
CIE-LCHlch(38.00, 54.77, 287.11°)
OKLaboklab(47.08% -0.0253 -0.1507)
OKLCHoklch(47.08% 0.153 260.5)
XYZxyz(11.7225, 10.0894, 41.8787)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2256AF #AF7B22
analogous
#229CAF #2256AF #3422AF
triadic
#2256AF #AF2256 #56AF22
tetradic
#2256AF #AF229C #AF7B22 #22AF34
square
#2256AF #AF229C #AF7B22 #22AF34
split-complementary
#2256AF #AF3422 #9CAF22
monochromatic
#0E2449 #183D7C #2256AF #3672D8 #6996E2

Accessibility & contrast

On white

6.96
#2256AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2256AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2256AF
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2256AF#FFFFFF#000000##FFFFFF
##2256AF1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2256af;
/* rgb */ color: rgb(34, 86, 175);
/* oklch */ color: oklch(47.1% 0.153 260.5);
Tailwind
colors: {
  custom: {
    50: '#7485c7',
    500: '#2256af',
    950: '#000000',
  },
}
SCSS
$custom: #2256af;
$custom-light: #7485c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2256af",
  "rgb": {
    "r": 34,
    "g": 86,
    "b": 175
  },
  "hsl": {
    "h": 217.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47084,
    "c": 0.15279,
    "h": 260.5
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#2256AF
secondary
#C8A365
accent
#AB3DEA
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2256AF

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

Preview Lab → · Contrast checker → · Palette generator →

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