#253D98#253D98

#253D98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.152 H 267.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#253D98
RGBrgb(37, 61, 152)
HSLhsl(227, 61%, 37%)
HSVhsv(227, 76%, 60%)
CMYKcmyk(75.7%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.40, 24.30, -52.48)
CIE-LCHlch(29.40, 57.83, 294.84°)
OKLaboklab(40.06% -0.0063 -0.1515)
OKLCHoklch(40.06% 0.152 267.6)
XYZxyz(8.0972, 5.9969, 30.4305)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253D98 #988025
analogous
#257798 #253D98 #462598
triadic
#253D98 #98253D #3D9825
tetradic
#253D98 #982577 #988025 #259846
square
#253D98 #982577 #988025 #259846
split-complementary
#253D98 #984625 #779825
monochromatic
#0D1536 #192967 #253D98 #3151C9 #5F78D8

Accessibility & contrast

On white

9.55
#253D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#253D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253D98
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253D98#FFFFFF#000000##FFFFFF
##253D981.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #253d98;
/* rgb */ color: rgb(37, 61, 152);
/* oklch */ color: oklch(40.1% 0.152 267.6);
Tailwind
colors: {
  custom: {
    50: '#7172b7',
    500: '#253d98',
    950: '#000000',
  },
}
SCSS
$custom: #253d98;
$custom-light: #7172b7;
$custom-dark: #000000;
JSON
{
  "hex": "#253d98",
  "rgb": {
    "r": 37,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 227.478,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40063,
    "c": 0.15161,
    "h": 267.6
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#253D98
secondary
#BDA95C
accent
#C344E4
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #253D98

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

Preview Lab → · Contrast checker → · Palette generator →

#253D98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva