#255298#255298

#255298 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.6% C 0.125 H 259.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#255298
RGBrgb(37, 82, 152)
HSLhsl(217, 61%, 37%)
HSVhsv(217, 76%, 60%)
CMYKcmyk(75.7%, 46.1%, 0%, 40.4%)
CIE-LABlab(35.39, 10.10, -42.80)
CIE-LCHlch(35.39, 43.98, 283.28°)
OKLaboklab(44.61% -0.0237 -0.1226)
OKLCHoklch(44.61% 0.125 259.1)
XYZxyz(9.4457, 8.6938, 30.8799)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#255298 #986B25
analogous
#258C98 #255298 #322598
triadic
#255298 #982552 #529825
tetradic
#255298 #98258C #986B25 #259832
square
#255298 #98258C #986B25 #259832
split-complementary
#255298 #983225 #8C9825
monochromatic
#0D1D36 #193767 #255298 #316DC9 #5F8FD8

Accessibility & contrast

On white

7.67
#255298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#255298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #255298
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##255298#FFFFFF#000000##FFFFFF
##2552981.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#164E97
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #255298;
/* rgb */ color: rgb(37, 82, 152);
/* oklch */ color: oklch(44.6% 0.125 259.1);
Tailwind
colors: {
  custom: {
    50: '#7082b7',
    500: '#255298',
    950: '#000000',
  },
}
SCSS
$custom: #255298;
$custom-light: #7082b7;
$custom-dark: #000000;
JSON
{
  "hex": "#255298",
  "rgb": {
    "r": 37,
    "g": 82,
    "b": 152
  },
  "hsl": {
    "h": 216.522,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44608,
    "c": 0.12492,
    "h": 259.1
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#255298
secondary
#BD975C
accent
#A544E4
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #255298

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

Preview Lab → · Contrast checker → · Palette generator →

#255298 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva